C# Class LitDev.LDDateTime

ファイルを表示 Open project: litdev1/LitDev

Public Methods

Method Description
Add ( Primitive date, Primitive offset ) : Primitive

Calculate a date from input date and an offset in days.

FromOADate ( Primitive OAdate ) : Primitive

Convert OADate to date string.

GetDay ( Primitive OAdate ) : Primitive

Get day of the month from OADate.

GetDayName ( Primitive OAdate ) : Primitive

Get day of the week from OADate.

GetHour ( Primitive OAdate ) : Primitive

Get hour from OADate.

GetMinute ( Primitive OAdate ) : Primitive

Get minute from OADate.

GetMonth ( Primitive OAdate ) : Primitive

Get month from OADate.

GetMonthName ( Primitive OAdate ) : Primitive

Get month name from OADate.

GetSecond ( Primitive OAdate ) : Primitive

Get second from OADate.

GetYear ( Primitive OAdate ) : Primitive

Get year from OADate.

Now ( ) : Primitive

The current date and time.

NowOADate ( ) : Primitive

The current OADate.

OADate ( Primitive year, Primitive month, Primitive day, Primitive hour, Primitive minute, Primitive second ) : Primitive

Create OADate from date and time values.

Subtract ( Primitive date1, Primitive date2 ) : Primitive

Calculate a number of days between two dates.

ToOADate ( Primitive date ) : Primitive

Convert date string to OADate.

Method Details

Add() public static method

Calculate a date from input date and an offset in days.
public static Add ( Primitive date, Primitive offset ) : Primitive
date Primitive The input date.
offset Primitive An offset in days.
return Primitive

FromOADate() public static method

Convert OADate to date string.
public static FromOADate ( Primitive OAdate ) : Primitive
OAdate Primitive /// The OADate to convert. /// /// The number of days since 30 December 1899 (OADate). ///
return Primitive

GetDay() public static method

Get day of the month from OADate.
public static GetDay ( Primitive OAdate ) : Primitive
OAdate Primitive /// The OADate. /// /// The number of days since 30 December 1899 (OADate). ///
return Primitive

GetDayName() public static method

Get day of the week from OADate.
public static GetDayName ( Primitive OAdate ) : Primitive
OAdate Primitive /// The OADate. /// /// The number of days since 30 December 1899 (OADate). ///
return Primitive

GetHour() public static method

Get hour from OADate.
public static GetHour ( Primitive OAdate ) : Primitive
OAdate Primitive /// The OADate. /// /// The number of days since 30 December 1899 (OADate). ///
return Primitive

GetMinute() public static method

Get minute from OADate.
public static GetMinute ( Primitive OAdate ) : Primitive
OAdate Primitive /// The OADate. /// /// The number of days since 30 December 1899 (OADate). ///
return Primitive

GetMonth() public static method

Get month from OADate.
public static GetMonth ( Primitive OAdate ) : Primitive
OAdate Primitive /// The OADate. /// /// The number of days since 30 December 1899 (OADate). ///
return Primitive

GetMonthName() public static method

Get month name from OADate.
public static GetMonthName ( Primitive OAdate ) : Primitive
OAdate Primitive /// The OADate. /// /// The number of days since 30 December 1899 (OADate). ///
return Primitive

GetSecond() public static method

Get second from OADate.
public static GetSecond ( Primitive OAdate ) : Primitive
OAdate Primitive /// The OADate. /// /// The number of days since 30 December 1899 (OADate). ///
return Primitive

GetYear() public static method

Get year from OADate.
public static GetYear ( Primitive OAdate ) : Primitive
OAdate Primitive /// The OADate. /// /// The number of days since 30 December 1899 (OADate). ///
return Primitive

Now() public static method

The current date and time.
public static Now ( ) : Primitive
return Primitive

NowOADate() public static method

The current OADate.
public static NowOADate ( ) : Primitive
return Primitive

OADate() public static method

Create OADate from date and time values.
public static OADate ( Primitive year, Primitive month, Primitive day, Primitive hour, Primitive minute, Primitive second ) : Primitive
year Primitive /// The year. ///
month Primitive /// The month. ///
day Primitive /// The day. ///
hour Primitive /// The hour. ///
minute Primitive /// The minute. ///
second Primitive /// The second. ///
return Primitive

Subtract() public static method

Calculate a number of days between two dates.
public static Subtract ( Primitive date1, Primitive date2 ) : Primitive
date1 Primitive The input date1.
date2 Primitive The input date2.
return Primitive

ToOADate() public static method

Convert date string to OADate.
public static ToOADate ( Primitive date ) : Primitive
date Primitive /// The date string to convert. /// /// The format is "25/01/2012 22:18:52", the time part is optional. /// The date part will be dependent on your locale, e.g. in US it will be "01/25/2012 22:18:52". ///
return Primitive