public final class TimeOps extends Object
Modifier and Type | Field and Description |
---|---|
static String[] |
longdays |
static String[] |
longmonths |
static long |
MSECS_PER_DAY |
static long |
MSECS_PER_HOUR |
static long |
MSECS_PER_MINUTE |
static long |
MSECS_PER_SECOND |
static String[] |
shortdays |
static String[] |
shortmonths |
static String |
TZDFLT |
static int |
WDAY1 |
Constructor and Description |
---|
TimeOps() |
Modifier and Type | Method and Description |
---|---|
static String |
displayTimezone(Calendar cal) |
static String |
displayTimezone(TimeZone tz,
long systime) |
static StringBuilder |
expandMilliTime(long msecs) |
static StringBuilder |
expandMilliTime(long msecs,
StringBuilder str,
boolean reset) |
static StringBuilder |
expandMilliTime(long msecs,
StringBuilder str,
boolean reset,
String dlm_units) |
static Calendar |
getCalendar(long systime,
String tz) |
static Calendar |
getCalendar(String tz) |
static long |
getSystime(Calendar dtcal,
int yy,
int mm,
int dd,
int hh,
int mins) |
static StringBuilder |
makeTimeISO8601(Calendar dtcal,
StringBuilder buf,
boolean withtime,
boolean basicformat,
boolean withzone) |
static StringBuilder |
makeTimeISO8601(long systime,
StringBuilder buf,
boolean withtime,
boolean basicformat,
boolean withzone) |
static StringBuilder |
makeTimeISO8601(long systime,
String tz,
StringBuilder buf,
boolean withtime,
boolean basicformat,
boolean withzone) |
static StringBuilder |
makeTimeLogger(Calendar dtcal,
StringBuilder buf,
boolean withdate,
boolean withmilli) |
static StringBuilder |
makeTimeLogger(long systime,
StringBuilder buf,
boolean withdate,
boolean withmilli) |
static StringBuilder |
makeTimeLogger(long systime,
String tz,
StringBuilder buf,
boolean withdate,
boolean withmilli) |
static StringBuilder |
makeTimeRFC822(Calendar dtcal,
StringBuilder buf) |
static StringBuilder |
makeTimeRFC822(long systime,
StringBuilder buf) |
static StringBuilder |
makeTimeRFC822(long systime,
String tz,
StringBuilder buf) |
static long |
parseMilliTime(CharSequence str) |
static long |
parseMilliTime(CharSequence str,
int off,
int len) |
static StringBuilder |
withDiffZone(Calendar dtcal,
StringBuilder buf) |
static StringBuilder |
zeroPad(long systime,
StringBuilder sb) |
public static final String TZDFLT
public static final int WDAY1
public static final String[] shortdays
public static final String[] longdays
public static final String[] shortmonths
public static final String[] longmonths
public static final long MSECS_PER_SECOND
public static final long MSECS_PER_MINUTE
public static final long MSECS_PER_HOUR
public static final long MSECS_PER_DAY
public static StringBuilder makeTimeRFC822(long systime, StringBuilder buf)
public static StringBuilder makeTimeRFC822(long systime, String tz, StringBuilder buf)
public static StringBuilder makeTimeISO8601(long systime, StringBuilder buf, boolean withtime, boolean basicformat, boolean withzone)
public static StringBuilder makeTimeISO8601(long systime, String tz, StringBuilder buf, boolean withtime, boolean basicformat, boolean withzone)
public static StringBuilder makeTimeLogger(long systime, StringBuilder buf, boolean withdate, boolean withmilli)
public static StringBuilder makeTimeLogger(long systime, String tz, StringBuilder buf, boolean withdate, boolean withmilli)
public static StringBuilder makeTimeRFC822(Calendar dtcal, StringBuilder buf)
public static StringBuilder makeTimeISO8601(Calendar dtcal, StringBuilder buf, boolean withtime, boolean basicformat, boolean withzone)
public static StringBuilder makeTimeLogger(Calendar dtcal, StringBuilder buf, boolean withdate, boolean withmilli)
public static StringBuilder withDiffZone(Calendar dtcal, StringBuilder buf)
public static long getSystime(Calendar dtcal, int yy, int mm, int dd, int hh, int mins)
public static long parseMilliTime(CharSequence str)
public static long parseMilliTime(CharSequence str, int off, int len)
public static StringBuilder expandMilliTime(long msecs)
public static StringBuilder expandMilliTime(long msecs, StringBuilder str, boolean reset)
public static StringBuilder expandMilliTime(long msecs, StringBuilder str, boolean reset, String dlm_units)
public static final StringBuilder zeroPad(long systime, StringBuilder sb)
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.