public class FileManDateTimeFormat extends Object
This format allows for representation of imprecise dates like JULY '78 or 1978 (which would be equivalent to 2780700 and 2780000, respectively). Dates are always returned as a canonic number (no trailing zeroes after the decimal). This implies that if there are any digits after the decimal we are dealing with an implicitly precise date/time with millisecond precision.
Modifier | Constructor and Description |
---|---|
protected |
FileManDateTimeFormat() |
Modifier and Type | Method and Description |
---|---|
static org.joda.time.format.DateTimeFormatter |
date() |
static org.joda.time.format.DateTimeFormatter |
dateTime()
Returns a formatter that combines a full date and time, separated by a '.' (yyyMMdd.HHmmss)
|
static PointInTime |
parse(String text) |
static org.joda.time.LocalDateTime |
parseLocalDateTime(String text) |
static PointInTime |
parsePointInTime(String text) |
static PointInTimeFormatter |
pointInTimeParser() |
static org.joda.time.format.DateTimeFormatter |
time() |
static PointInTime |
toPointInTime(String text) |
public static org.joda.time.format.DateTimeFormatter date()
public static org.joda.time.format.DateTimeFormatter time()
public static org.joda.time.format.DateTimeFormatter dateTime()
public static PointInTimeFormatter pointInTimeParser()
public static PointInTime parse(String text)
public static PointInTime toPointInTime(String text)
public static PointInTime parsePointInTime(String text)
public static org.joda.time.LocalDateTime parseLocalDateTime(String text)
Copyright © 2013 Department of Veterans Affairs. All Rights Reserved.