public class TimeStampFormatStandard extends Object implements TimeStampFormat
The %S field is special: its precision affects when other fields (potentially all of them) roll over to the next value. For instance, if a time formatted with a %S gives the string "1999/12/31 23:59:59.999", then it will give "2000/01/01 00:00:00" when formatted with %0S. Note that the value of every field changed, solely because of a change in the precision of the %S field.
If a format string does not contain a %S field, other fields will behave as though there were a full-precision %S. For instance:
iso8601
Constructor and Description |
---|
TimeStampFormatStandard(String format,
String timeZoneName) |
TimeStampFormatStandard(String format,
TimeZone timeZone) |
Modifier and Type | Method and Description |
---|---|
String |
format(BigDecimal posixSeconds) |
com.metsci.glimpse.util.units.time.format.TimeStampFormatStandard.Field |
newField(char code,
String flags) |
BigDecimal |
parse(String string) |
public com.metsci.glimpse.util.units.time.format.TimeStampFormatStandard.Field newField(char code, String flags)
public BigDecimal parse(String string)
parse
in interface TimeStampFormat
public String format(BigDecimal posixSeconds)
format
in interface TimeStampFormat
Copyright © 2013 Metron, Inc.. All rights reserved.