com.metsci.glimpse.util.units.time.format
Interface TimeStampFormat

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
TimeStampFormatStandard

public interface TimeStampFormat
extends java.lang.Cloneable


Field Summary
static TimeStampFormat iso8601
          The string must be a date-time string in ISO-8601 format, with the following extra restrictions: The string must include separators, even though ISO-8601 says separators may be omitted in some cases.
 
Method Summary
 java.lang.String format(java.math.BigDecimal posixSeconds)
           
 java.math.BigDecimal parse(java.lang.String string)
           
 

Field Detail

iso8601

static final TimeStampFormat iso8601
The string must be a date-time string in ISO-8601 format, with the following extra restrictions: Examples:

Method Detail

parse

java.math.BigDecimal parse(java.lang.String string)
                           throws TimeStampParseException
Returns:
seconds since the epoch
Throws:
TimeStampParseException - if the string cannot be parsed according to this format

format

java.lang.String format(java.math.BigDecimal posixSeconds)
Returns:
a date-time string, formatted according to this format


Copyright © 2012 Metron, Inc.. All Rights Reserved.