public class TimeUtil extends Object
Constructor and Description |
---|
TimeUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
normalize2DigitYear(int year)
Interpret a positive 2-digit year between 90 and 99 in the 1990s and all
others in the 2000s.
|
static TimeIndex |
now(TimeDomain domain)
Return the current date and time.
|
public static TimeIndex now(TimeDomain domain)
domain
- a non-null time domainpublic static int normalize2DigitYear(int year)
year
- a year, possibly with only two digitsCopyright © 2017. All rights reserved.