C# Class Fan.Sys.Time

Time represents a time of day independent of a specific date or timezone.
Inheritance: FanObj
Show file Open project: xored/f4 Class Usage Examples

Public Properties

Property Type Description
m_defVal Time

Public Methods

Method Description
@typeof ( ) : Type
Equals ( object obj ) : bool
GetHashCode ( ) : int
compare ( object obj ) : long
fromDuration ( Duration d ) : Time
fromIso ( string s ) : Time
fromIso ( string s, bool check ) : Time
fromLocale ( string s, string pattern ) : Time
fromLocale ( string s, string pattern, bool check ) : Time
fromStr ( string s ) : Time
fromStr ( string s, bool check ) : Time
getHour ( ) : int
getMin ( ) : int
getNanoSec ( ) : int
getSec ( ) : int
hash ( ) : long
hour ( ) : long
isMidnight ( ) : bool
make ( long hour, long min ) : Time
make ( long hour, long min, long sec ) : Time
make ( long hour, long min, long sec, long ns ) : Time
min ( ) : long
nanoSec ( ) : long
now ( ) : Time
now ( TimeZone tz ) : Time
sec ( ) : long
toCode ( ) : string
toDateTime ( Fan.Sys.Date d ) : DateTime
toDateTime ( Fan.Sys.Date d, TimeZone tz ) : DateTime
toDuration ( ) : Duration
toIso ( ) : string
toLocale ( ) : string
toLocale ( string pattern ) : string
toStr ( ) : string

Private Methods

Method Description
Time ( int hour, int min, int sec, int ns ) : System.Globalization
num ( string s, int index ) : int

Method Details

@typeof() public method

public @typeof ( ) : Type
return Type

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

compare() public method

public compare ( object obj ) : long
obj object
return long

fromDuration() public static method

public static fromDuration ( Duration d ) : Time
d Duration
return Time

fromIso() public static method

public static fromIso ( string s ) : Time
s string
return Time

fromIso() public static method

public static fromIso ( string s, bool check ) : Time
s string
check bool
return Time

fromLocale() public static method

public static fromLocale ( string s, string pattern ) : Time
s string
pattern string
return Time

fromLocale() public static method

public static fromLocale ( string s, string pattern, bool check ) : Time
s string
pattern string
check bool
return Time

fromStr() public static method

public static fromStr ( string s ) : Time
s string
return Time

fromStr() public static method

public static fromStr ( string s, bool check ) : Time
s string
check bool
return Time

getHour() public method

public getHour ( ) : int
return int

getMin() public method

public getMin ( ) : int
return int

getNanoSec() public method

public getNanoSec ( ) : int
return int

getSec() public method

public getSec ( ) : int
return int

hash() public method

public hash ( ) : long
return long

hour() public method

public hour ( ) : long
return long

isMidnight() public method

public isMidnight ( ) : bool
return bool

make() public static method

public static make ( long hour, long min ) : Time
hour long
min long
return Time

make() public static method

public static make ( long hour, long min, long sec ) : Time
hour long
min long
sec long
return Time

make() public static method

public static make ( long hour, long min, long sec, long ns ) : Time
hour long
min long
sec long
ns long
return Time

min() public method

public min ( ) : long
return long

nanoSec() public method

public nanoSec ( ) : long
return long

now() public static method

public static now ( ) : Time
return Time

now() public static method

public static now ( TimeZone tz ) : Time
tz TimeZone
return Time

sec() public method

public sec ( ) : long
return long

toCode() public method

public toCode ( ) : string
return string

toDateTime() public method

public toDateTime ( Fan.Sys.Date d ) : DateTime
d Fan.Sys.Date
return DateTime

toDateTime() public method

public toDateTime ( Fan.Sys.Date d, TimeZone tz ) : DateTime
d Fan.Sys.Date
tz TimeZone
return DateTime

toDuration() public method

public toDuration ( ) : Duration
return Duration

toIso() public method

public toIso ( ) : string
return string

toLocale() public method

public toLocale ( ) : string
return string

toLocale() public method

public toLocale ( string pattern ) : string
pattern string
return string

toStr() public method

public toStr ( ) : string
return string

Property Details

m_defVal public static property

public static Time,Fan.Sys m_defVal
return Time