fm.liveswitch.DateExtensions Class Reference

Static Public Member Functions

static Date createDate (long ticks)
 
static Date createDate (int year, int month, int day, int hour, int minute, int second)
 
static Date createDate (int year, int month, int day, int hour, int minute, int second, int millisecond)
 
static Date getNow ()
 
static Date getUtcNow ()
 
static long getTicks (Date date)
 
static Date toUniversalTime (Date date)
 
static String toString (Date date, String format, IFormatProvider provider)
 
static int getYear (Date date)
 
static int getMonth (Date date)
 
static int getDay (Date date)
 
static int getHour (Date date)
 
static int getMinute (Date date)
 
static int getSecond (Date date)
 
static int getMillisecond (Date date)
 
static Date addHours (Date date, double hours)
 
static Date addMinutes (Date date, double minutes)
 
static Date addSeconds (Date date, double seconds)
 
static Date addMilliseconds (Date date, double milliseconds)
 

Member Function Documentation

◆ addHours()

static Date fm.liveswitch.DateExtensions.addHours ( Date  date,
double  hours 
)
static

◆ addMilliseconds()

static Date fm.liveswitch.DateExtensions.addMilliseconds ( Date  date,
double  milliseconds 
)
static

◆ addMinutes()

static Date fm.liveswitch.DateExtensions.addMinutes ( Date  date,
double  minutes 
)
static

◆ addSeconds()

static Date fm.liveswitch.DateExtensions.addSeconds ( Date  date,
double  seconds 
)
static

◆ createDate() [1/3]

static Date fm.liveswitch.DateExtensions.createDate ( int  year,
int  month,
int  day,
int  hour,
int  minute,
int  second 
)
static

◆ createDate() [2/3]

static Date fm.liveswitch.DateExtensions.createDate ( int  year,
int  month,
int  day,
int  hour,
int  minute,
int  second,
int  millisecond 
)
static

◆ createDate() [3/3]

static Date fm.liveswitch.DateExtensions.createDate ( long  ticks)
static

◆ getDay()

static int fm.liveswitch.DateExtensions.getDay ( Date  date)
static

◆ getHour()

static int fm.liveswitch.DateExtensions.getHour ( Date  date)
static

◆ getMillisecond()

static int fm.liveswitch.DateExtensions.getMillisecond ( Date  date)
static

◆ getMinute()

static int fm.liveswitch.DateExtensions.getMinute ( Date  date)
static

◆ getMonth()

static int fm.liveswitch.DateExtensions.getMonth ( Date  date)
static

◆ getNow()

static Date fm.liveswitch.DateExtensions.getNow ( )
static

◆ getSecond()

static int fm.liveswitch.DateExtensions.getSecond ( Date  date)
static

◆ getTicks()

static long fm.liveswitch.DateExtensions.getTicks ( Date  date)
static

◆ getUtcNow()

static Date fm.liveswitch.DateExtensions.getUtcNow ( )
static

◆ getYear()

static int fm.liveswitch.DateExtensions.getYear ( Date  date)
static

◆ toString()

static String fm.liveswitch.DateExtensions.toString ( Date  date,
String  format,
IFormatProvider  provider 
)
static

◆ toUniversalTime()

static Date fm.liveswitch.DateExtensions.toUniversalTime ( Date  date)
static