| | |
| | | private static final TimeZone TIME_ZONE_UTC_OBJ = TimeZone.getTimeZone("UTC"); |
| | | |
| | | /** |
| | | * Returns a generalized time whose value is the current time, using the |
| | | * default time zone and locale. |
| | | * |
| | | * @return A generalized time whose value is the current time. |
| | | */ |
| | | public static GeneralizedTime currentTime() { |
| | | return valueOf(Calendar.getInstance()); |
| | | } |
| | | |
| | | /** |
| | | * Returns a generalized time representing the provided {@code Calendar}. |
| | | * <p> |
| | | * The provided calendar will be defensively copied in order to preserve |
| | |
| | | |
| | | TimeZone timeZone = null; |
| | | |
| | | outerLoop: |
| | | outerLoop: |
| | | for (int i = startPos; i < length; i++) { |
| | | final char c = value.charAt(i); |
| | | switch (c) { |