OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. All rights reserved. | 2 * Copyright 2014 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style | 4 * Use of this source code is governed by a BSD-style |
5 * license that can be found in the LICENSE file or at | 5 * license that can be found in the LICENSE file or at |
6 * https://developers.google.com/open-source/licenses/bsd | 6 * https://developers.google.com/open-source/licenses/bsd |
7 */ | 7 */ |
8 part of charted.locale.format; | 8 part of charted.locale.format; |
9 | 9 |
10 typedef String TimeFormatFunction(DateTime date); | 10 typedef String TimeFormatFunction(DateTime date); |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 UTCTimeFormat _getInstance(String template) { | 128 UTCTimeFormat _getInstance(String template) { |
129 return new UTCTimeFormat(template, _locale); | 129 return new UTCTimeFormat(template, _locale); |
130 } | 130 } |
131 | 131 |
132 DateTime parse(String string) { | 132 DateTime parse(String string) { |
133 assert(_dateFormat != null); | 133 assert(_dateFormat != null); |
134 return _dateFormat.parseUTC(string); | 134 return _dateFormat.parseUTC(string); |
135 } | 135 } |
136 } | 136 } |
OLD | NEW |