public class DatetimeUtil extends Object
Modifier and Type | Field and Description |
---|---|
static Locale |
DEF_LOCALE |
static TimeZone |
LOCAL_TIMEZONE |
static TimeZone |
UTC_TIMEZONE |
Constructor and Description |
---|
DatetimeUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
formatDate(Calendar cal) |
static byte[] |
formatLocalMktDate(Calendar cal) |
static byte[] |
formatMonthYear(Calendar cal) |
static byte[] |
formatMonthYear44(Calendar cal) |
static byte[] |
formatTime(Calendar cal) |
static byte[] |
formatUTCDate(Calendar cal) |
static byte[] |
formatUTCTimeOnly(Calendar cal) |
static byte[] |
formatUTCTimestamp(Calendar cal) |
static boolean |
isInvalidDate(byte[] buf,
int off,
int len) |
static boolean |
isInvalidMonthYear(byte[] buf,
int off,
int len) |
static boolean |
isInvalidMonthYear44(byte[] buf,
int off,
int len) |
static boolean |
isInvalidTime(byte[] buf,
int off,
int len) |
static boolean |
isInvalidTimeOnly(byte[] buf,
int off,
int len) |
static boolean |
isInvalidTimestamp(byte[] buf,
int off,
int len) |
static Calendar |
parseDate(byte[] block,
Calendar calendar) |
static Calendar |
parseLocalMktDate(byte[] block) |
static Calendar |
parseMonthYear(byte[] block) |
static Calendar |
parseMonthYear(byte[] block,
Calendar calendar) |
static Calendar |
parseMonthYear44(byte[] block) |
static Calendar |
parseMonthYear44(byte[] block,
Calendar calendar) |
static Calendar |
parseTime(byte[] block) |
static Calendar |
parseTime(byte[] block,
Calendar calendar) |
static Calendar |
parseTimeOnly(byte[] block,
Calendar calendar) |
static Calendar |
parseTimestamp(byte[] block,
Calendar calendar) |
static Calendar |
parseUTCDate(byte[] block) |
static Calendar |
parseUTCTimeOnly(byte[] block) |
static Calendar |
parseUTCTimestamp(byte[] block) |
public static final TimeZone UTC_TIMEZONE
public static final TimeZone LOCAL_TIMEZONE
public static final Locale DEF_LOCALE
public static boolean isInvalidTimestamp(byte[] buf, int off, int len)
public static boolean isInvalidTimeOnly(byte[] buf, int off, int len)
public static boolean isInvalidDate(byte[] buf, int off, int len)
public static boolean isInvalidMonthYear(byte[] buf, int off, int len)
public static boolean isInvalidMonthYear44(byte[] buf, int off, int len)
public static boolean isInvalidTime(byte[] buf, int off, int len)
public static Calendar parseUTCTimestamp(byte[] block)
public static Calendar parseUTCTimeOnly(byte[] block)
public static Calendar parseUTCDate(byte[] block)
public static Calendar parseLocalMktDate(byte[] block)
public static Calendar parseMonthYear(byte[] block)
public static Calendar parseMonthYear44(byte[] block)
public static Calendar parseTime(byte[] block)
public static byte[] formatUTCTimestamp(Calendar cal)
public static byte[] formatUTCTimeOnly(Calendar cal)
public static byte[] formatDate(Calendar cal)
public static byte[] formatUTCDate(Calendar cal)
public static byte[] formatLocalMktDate(Calendar cal)
public static byte[] formatMonthYear(Calendar cal)
public static byte[] formatMonthYear44(Calendar cal)
public static byte[] formatTime(Calendar cal)
Copyright © 2000–2022 EPAM Systems. All rights reserved.