public final class IntDate extends Object
Where an IntDate is a JSON numeric value representing the number of seconds from 1970-01-01T0:0:0Z UTC until the specified UTC date/time.
Modifier and Type | Method and Description |
---|---|
static Date |
fromIntDate(long intDate)
Converts an IntDate into a Java Date object.
|
static long |
toIntDate(Date date)
Converts a Java Date object into an IntDate.
|
public static long toIntDate(Date date)
Note: Precision is lost in this conversion as the milliseconds are dropped as a part of the conversion.
date
- The Java Date to convert.public static Date fromIntDate(long intDate)
Note: Milliseconds are set to zero on the converted Java Date as an IntDate does not hold millisecond information.
intDate
- The IntDate to convert.Copyright © 2010-2018, ForgeRock All Rights Reserved.