[ whitefrost.com | Account Manager 4 Product Page ]

Core.Util.Date.DateUtil Class Reference

Summary description for DateUtil. More...

List of all members.

Public Member Functions

 DateUtil ()

Static Public Member Functions

static String CurrentTime ()
static String CurrentTimeUtc ()
static DateTime GMT ()
static long LocalEpoch ()
static DateTime GetDateFromSeconds (long ms)
static long GetSecondsFromDate (DateTime in_date)
static long GetSecondsFromFormattedDate (String date_str, String format)
static String GetFormattedDateFromSeconds (long ms, String format)
static String GetDisplayDate (DateTime time)
static String GetDisplayTime (DateTime time)
static String GetFormattedDate (String format)
static String GetFormattedDate (DateTime time)
static String GetFormattedDate (String format, DateTime time)
static DateTime GetTimeFromFormattedDate (String date_string)
static DateTime GetTimeFromFormattedDate (String date_string, String format_pattern)
static int GetDayOfWeek (System.DayOfWeek day_of_week)
static DateTime CreateTime (int years, int months, int days, int hours, int minutes, int seconds)

Public Attributes

const long FIVE_MINUTES = 300000
const long TEN_MINUTES = 600000
const long ONE_HOUR = 3600000
const long ONE_DAY = 86400000
const long ONE_YEAR = ONE_DAY * 365

Static Public Attributes

static String STANDARD_FORMAT_12HR = "yyyy/MM/dd hh:mm:ss tt zzz"
static String STANDARD_FORMAT_12HR_NOSECONDS = "yyyy/MM/dd hh:mm tt zzz"
static String STANDARD_FORMAT_24HR = "yyyy/MM/dd HH:mm:ss zzz"
static String STANDARD_FORMAT_24HR_NOSECONDS = "yyyy/MM/dd HH:mm zzz"
static String STANDARD_FORMAT_UTC = "yyyy/MM/dd HH:mm:ss"
static String STANDARD_FORMAT_UTC_NOSECONDS = "yyyy/MM/dd HH:mm"
static String STANDARD_FORMAT = STANDARD_FORMAT_24HR
static String STANDARD_FORMAT_NOSECONDS = STANDARD_FORMAT_24HR_NOSECONDS
static String STANDARD_FORMAT_DATE_DISPLAY = "MM/dd/yy"
static String STANDARD_FORMAT_TIME_DISPLAY_12HR = "hh:mm tt"
static String STANDARD_FORMAT_TIME_DISPLAY_24HR = "HH:mm"
static String STANDARD_FORMAT_TIME_DISPLAY = STANDARD_FORMAT_TIME_DISPLAY_24HR

Properties

static int ServerTimeZoneOffset [get]


Detailed Description

Summary description for DateUtil.


Constructor & Destructor Documentation

Core.Util.Date.DateUtil.DateUtil (  ) 


Member Function Documentation

static String Core.Util.Date.DateUtil.CurrentTime (  )  [static]

static String Core.Util.Date.DateUtil.CurrentTimeUtc (  )  [static]

static DateTime Core.Util.Date.DateUtil.GMT (  )  [static]

static long Core.Util.Date.DateUtil.LocalEpoch (  )  [static]

static DateTime Core.Util.Date.DateUtil.GetDateFromSeconds ( long  ms  )  [static]

static long Core.Util.Date.DateUtil.GetSecondsFromDate ( DateTime  in_date  )  [static]

static long Core.Util.Date.DateUtil.GetSecondsFromFormattedDate ( String  date_str,
String  format 
) [static]

static String Core.Util.Date.DateUtil.GetFormattedDateFromSeconds ( long  ms,
String  format 
) [static]

static String Core.Util.Date.DateUtil.GetDisplayDate ( DateTime  time  )  [static]

static String Core.Util.Date.DateUtil.GetDisplayTime ( DateTime  time  )  [static]

static String Core.Util.Date.DateUtil.GetFormattedDate ( String  format  )  [static]

static String Core.Util.Date.DateUtil.GetFormattedDate ( DateTime  time  )  [static]

static String Core.Util.Date.DateUtil.GetFormattedDate ( String  format,
DateTime  time 
) [static]

static DateTime Core.Util.Date.DateUtil.GetTimeFromFormattedDate ( String  date_string  )  [static]

static DateTime Core.Util.Date.DateUtil.GetTimeFromFormattedDate ( String  date_string,
String  format_pattern 
) [static]

static int Core.Util.Date.DateUtil.GetDayOfWeek ( System.DayOfWeek  day_of_week  )  [static]

static DateTime Core.Util.Date.DateUtil.CreateTime ( int  years,
int  months,
int  days,
int  hours,
int  minutes,
int  seconds 
) [static]


Member Data Documentation

String Core.Util.Date.DateUtil.STANDARD_FORMAT_12HR = "yyyy/MM/dd hh:mm:ss tt zzz" [static]

String Core.Util.Date.DateUtil.STANDARD_FORMAT_12HR_NOSECONDS = "yyyy/MM/dd hh:mm tt zzz" [static]

String Core.Util.Date.DateUtil.STANDARD_FORMAT_24HR = "yyyy/MM/dd HH:mm:ss zzz" [static]

String Core.Util.Date.DateUtil.STANDARD_FORMAT_24HR_NOSECONDS = "yyyy/MM/dd HH:mm zzz" [static]

String Core.Util.Date.DateUtil.STANDARD_FORMAT_UTC = "yyyy/MM/dd HH:mm:ss" [static]

String Core.Util.Date.DateUtil.STANDARD_FORMAT_UTC_NOSECONDS = "yyyy/MM/dd HH:mm" [static]

const long Core.Util.Date.DateUtil.ONE_HOUR = 3600000

const long Core.Util.Date.DateUtil.ONE_DAY = 86400000


Property Documentation

int Core.Util.Date.DateUtil.ServerTimeZoneOffset [static, get]


The documentation for this class was generated from the following file:
Stephen W. Cote, 2009, whitefrost.com