C# Class Encog.Util.Time.NumericDateUtil

Show file Open project: encog/encog-silverlight-core

Public Methods

Method Description
Combine ( ulong date, uint time ) : ulong

Combine a date and a time.

DateTime2Long ( System.DateTime time ) : ulong

Convert a date/time to a long.

GetDayOfWeek ( ulong p ) : int

Get the day of the week for the specified numeric date.

GetMinutePeriod ( uint time, int period ) : int

Get the minute period.

GetMonth ( ulong l ) : int

Get the year month of a numeric date.

GetYear ( ulong date ) : int

Get the year part of a numeric date.

HaveSameDate ( System.DateTime d1, System.DateTime d2 ) : bool

Determine of two values have the same date.

Long2DateTime ( ulong l ) : System.DateTime

Convert a numeric date time to a regular date time.

StripTime ( System.DateTime dt ) : System.DateTime

Strip the time element.

Private Methods

Method Description
Int2Time ( System.DateTime date, uint i ) : System.DateTime

Convert an int to a time.

Time2Int ( System.DateTime time ) : uint

Convert a time to an int.

Method Details

Combine() public static method

Combine a date and a time.
public static Combine ( ulong date, uint time ) : ulong
date ulong The date.
time uint The time.
return ulong

DateTime2Long() public static method

Convert a date/time to a long.
public static DateTime2Long ( System.DateTime time ) : ulong
time System.DateTime The time to convert.
return ulong

GetDayOfWeek() public static method

Get the day of the week for the specified numeric date.
public static GetDayOfWeek ( ulong p ) : int
p ulong The time to check.
return int

GetMinutePeriod() public static method

Get the minute period.
public static GetMinutePeriod ( uint time, int period ) : int
time uint The time.
period int The period size, in minutes.
return int

GetMonth() public static method

Get the year month of a numeric date.
public static GetMonth ( ulong l ) : int
l ulong The numeric date.
return int

GetYear() public static method

Get the year part of a numeric date.
public static GetYear ( ulong date ) : int
date ulong The numeric date.
return int

HaveSameDate() public static method

Determine of two values have the same date.
public static HaveSameDate ( System.DateTime d1, System.DateTime d2 ) : bool
d1 System.DateTime The first date/time.
d2 System.DateTime The second date/time.
return bool

Long2DateTime() public static method

Convert a numeric date time to a regular date time.
public static Long2DateTime ( ulong l ) : System.DateTime
l ulong The numeric date time.
return System.DateTime

StripTime() public static method

Strip the time element.
public static StripTime ( System.DateTime dt ) : System.DateTime
dt System.DateTime The time-date element to strip.
return System.DateTime