java.lang.Object
com.pervasive.datarush.tokens.scalar.DateDataUtil
Deprecated.
Utilities for working with date data.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic longdateToEpochDays(Date date, ZoneId zoneId) Deprecated.since 6.1; useDateTimeUtil#toDaysSinceEpoch(java.util.Date, ZoneId)instead.static DateepochDaysToDate(long epochDays, ZoneId zoneId) Deprecated.since 6.1; useDateTimeUtil#toDate(long, ZoneId)instead.static longepochDaysToMillis(long epochDays, ZoneId zoneId) Deprecated.since 6.1; useDateTimeUtil#epochDaysToMillis(long, ZoneId)instead.static longmillisToEpochDays(long millis, ZoneId zoneId) Deprecated.since 6.1; useDateTimeUtil#toDaysSinceEpoch(long, ZoneId)instead.static DateTokenDeprecated.since 6.1; useDateToken.parse(String)instead.
-
Method Details
-
epochDaysToDate
Deprecated.since 6.1; useDateTimeUtil#toDate(long, ZoneId)instead.Converts a date value in epoch days to a Java timestamp in the specified time zone.- Parameters:
epochDays- the date in epoch days to convertzoneId- the time zone id to which the resulting timestamp should be relative- Returns:
- the Java timestamp corresponding to the date
-
epochDaysToMillis
Deprecated.since 6.1; useDateTimeUtil#epochDaysToMillis(long, ZoneId)instead.Converts a date value in epoch days to a timestamp in Java epoch time.- Parameters:
epochDays- the date in epoch days to convertzoneId- the time zone id to which the resulting timestamp should be relative- Returns:
- the Java epoch time corresponding to the date
-
dateToEpochDays
Deprecated.since 6.1; useDateTimeUtil#toDaysSinceEpoch(java.util.Date, ZoneId)instead.Truncates a Java timestamp value in a specified time zone to an epoch days value.- Parameters:
date- the Java timestamp to convertzoneId- the time zone id to which the timestamp is relative- Returns:
- the epoch days value
-
millisToEpochDays
Deprecated.since 6.1; useDateTimeUtil#toDaysSinceEpoch(long, ZoneId)instead.Truncates a timestamp in a Java epoch time value in a specified time zone to an epoch days value.- Parameters:
millis- the Java epoch time to convertzoneId- the time zone id to which the timestamp is relative- Returns:
- the epoch days value
-
parse
Deprecated.since 6.1; useDateToken.parse(String)instead.Parses an ISO 8601 timestamp string into a date value. If a time portion is provided, it is ignored.- Parameters:
dateText- an ISO 8601 timestamp value- Returns:
- the date value, as a
DateToken, ornullif dateText isnull - See Also:
-
DateTimeUtilsinstead.