C# Class Fan.Sys.DateTime

DateTime represents an absolute instance in time.
Inheritance: FanObj
Afficher le fichier Open project: xored/f4 Class Usage Examples

Méthodes publiques

Свойство Type Description
m_defVal DateTime

Méthodes publiques

Méthode Description
@typeof ( ) : Type
Equals ( object obj ) : bool
GetHashCode ( ) : int
boot ( ) : DateTime
compare ( object obj ) : long
date ( ) : Fan.Sys.Date
day ( ) : long
dayOfYear ( int year, int mon, int day ) : int

Static util for day of year (0-365). NOTE: this is zero based, unlike public Fantom method.

dayOfYear ( ) : long
dotnet ( long dotnetTicks ) : DateTime
dotnet ( ) : long
dst ( ) : bool
floor ( Duration accuracy ) : DateTime
fromHttpStr ( string s ) : DateTime
fromHttpStr ( string s, bool check ) : DateTime
fromIso ( string s ) : DateTime
fromIso ( string s, bool check ) : DateTime
fromJava ( long millis ) : DateTime
fromJava ( long millis, TimeZone tz ) : DateTime
fromJava ( long millis, TimeZone tz, bool negIsNull ) : DateTime
fromLocale ( string s, string pattern ) : DateTime
fromLocale ( string s, string pattern, TimeZone tz ) : DateTime
fromLocale ( string s, string pattern, TimeZone tz, bool check ) : DateTime
fromStr ( string s ) : DateTime
fromStr ( string s, bool check ) : DateTime
getDST ( ) : bool
getDay ( ) : int
getHour ( ) : int
getMin ( ) : int
getNanoSec ( ) : int
getSec ( ) : int
getTicks ( ) : long
getYear ( ) : int
hash ( ) : long
hour ( ) : long
hoursInDay ( ) : long
isLeapYear ( int year ) : bool
isLeapYear ( long year ) : bool
isMidnight ( ) : bool
make ( long year, Month month, long day, long hour, long min ) : DateTime
make ( long year, Month month, long day, long hour, long min, long sec ) : DateTime
make ( long year, Month month, long day, long hour, long min, long sec, long ns ) : DateTime
make ( long year, Month month, long day, long hour, long min, long sec, long ns, TimeZone tz ) : DateTime
makeTicks ( long ticks ) : DateTime
makeTicks ( long ticks, TimeZone tz ) : DateTime
midnight ( ) : DateTime
min ( ) : long
minus ( Duration duration ) : DateTime
minusDateTime ( DateTime time ) : Duration
month ( ) : Month
nanoSec ( ) : long
now ( ) : DateTime
now ( Duration tolerance ) : DateTime
nowTicks ( ) : long
nowUnique ( ) : long
nowUtc ( ) : DateTime
nowUtc ( Duration tolerance ) : DateTime
plus ( Duration duration ) : DateTime
sec ( ) : long
ticks ( ) : long
time ( ) : Time
toCode ( ) : string
toHttpStr ( ) : string
toIso ( ) : string
toJava ( ) : long
toLocale ( ) : string
toLocale ( string pattern ) : string
toRel ( ) : DateTime
toStr ( ) : string
toTimeZone ( TimeZone tz ) : DateTime
toUtc ( ) : DateTime
tz ( ) : TimeZone
tzAbbr ( ) : string
weekOfYear ( ) : long
weekOfYear ( Weekday startOfWeek ) : long
weekday ( ) : Weekday
weekdayInMonth ( int year, int mon, int weekday, int pos ) : int
weekdayInMonth ( long year, Month mon, Weekday weekday, long pos ) : long
year ( ) : long

Private Methods

Méthode Description
DateTime ( ) : System.Globalization
DateTime ( int year, int month, int day, int hour, int min, int sec, long ns, int knownOffset, TimeZone tz ) : System.Globalization
DateTime ( long ticks, TimeZone tz ) : System.Globalization
checkYear ( int year ) : void

If not valid year range 1901 to 2099 throw ArgErr.

fillInDayOfYear ( byte mon, byte days, int daysInMon ) : void
firstWeekday ( int year, int mon ) : int

Get the first weekday of the specified year and month (0-11).

fromStr ( string s, bool check, bool iso ) : DateTime
getMonth ( ) : int
makeDT ( Fan.Sys.Date d, Time t ) : DateTime
makeDT ( Date d, Time t, TimeZone tz ) : DateTime
num ( string s, int index ) : int
numDaysInMonth ( int year, int month ) : int

Get the number days in the specified month (0-11).

ticksToYear ( long ticks ) : int

Compute the year for ns ticks.

weekOfYear ( int year, int month, int day, Weekday startOfWeek ) : int

Method Details

@typeof() public méthode

public @typeof ( ) : Type
Résultat Type

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

boot() public static méthode

public static boot ( ) : DateTime
Résultat DateTime

compare() public méthode

public compare ( object obj ) : long
obj object
Résultat long

date() public méthode

public date ( ) : Fan.Sys.Date
Résultat Fan.Sys.Date

day() public méthode

public day ( ) : long
Résultat long

dayOfYear() public static méthode

Static util for day of year (0-365). NOTE: this is zero based, unlike public Fantom method.
public static dayOfYear ( int year, int mon, int day ) : int
year int
mon int
day int
Résultat int

dayOfYear() public méthode

public dayOfYear ( ) : long
Résultat long

dotnet() public static méthode

public static dotnet ( long dotnetTicks ) : DateTime
dotnetTicks long
Résultat DateTime

dotnet() public méthode

public dotnet ( ) : long
Résultat long

dst() public méthode

public dst ( ) : bool
Résultat bool

floor() public méthode

public floor ( Duration accuracy ) : DateTime
accuracy Duration
Résultat DateTime

fromHttpStr() public static méthode

public static fromHttpStr ( string s ) : DateTime
s string
Résultat DateTime

fromHttpStr() public static méthode

public static fromHttpStr ( string s, bool check ) : DateTime
s string
check bool
Résultat DateTime

fromIso() public static méthode

public static fromIso ( string s ) : DateTime
s string
Résultat DateTime

fromIso() public static méthode

public static fromIso ( string s, bool check ) : DateTime
s string
check bool
Résultat DateTime

fromJava() public static méthode

public static fromJava ( long millis ) : DateTime
millis long
Résultat DateTime

fromJava() public static méthode

public static fromJava ( long millis, TimeZone tz ) : DateTime
millis long
tz TimeZone
Résultat DateTime

fromJava() public static méthode

public static fromJava ( long millis, TimeZone tz, bool negIsNull ) : DateTime
millis long
tz TimeZone
negIsNull bool
Résultat DateTime

fromLocale() public static méthode

public static fromLocale ( string s, string pattern ) : DateTime
s string
pattern string
Résultat DateTime

fromLocale() public static méthode

public static fromLocale ( string s, string pattern, TimeZone tz ) : DateTime
s string
pattern string
tz TimeZone
Résultat DateTime

fromLocale() public static méthode

public static fromLocale ( string s, string pattern, TimeZone tz, bool check ) : DateTime
s string
pattern string
tz TimeZone
check bool
Résultat DateTime

fromStr() public static méthode

public static fromStr ( string s ) : DateTime
s string
Résultat DateTime

fromStr() public static méthode

public static fromStr ( string s, bool check ) : DateTime
s string
check bool
Résultat DateTime

getDST() public méthode

public getDST ( ) : bool
Résultat bool

getDay() public méthode

public getDay ( ) : int
Résultat int

getHour() public méthode

public getHour ( ) : int
Résultat int

getMin() public méthode

public getMin ( ) : int
Résultat int

getNanoSec() public méthode

public getNanoSec ( ) : int
Résultat int

getSec() public méthode

public getSec ( ) : int
Résultat int

getTicks() public méthode

public getTicks ( ) : long
Résultat long

getYear() public méthode

public getYear ( ) : int
Résultat int

hash() public méthode

public hash ( ) : long
Résultat long

hour() public méthode

public hour ( ) : long
Résultat long

hoursInDay() public méthode

public hoursInDay ( ) : long
Résultat long

isLeapYear() public static méthode

public static isLeapYear ( int year ) : bool
year int
Résultat bool

isLeapYear() public static méthode

public static isLeapYear ( long year ) : bool
year long
Résultat bool

isMidnight() public méthode

public isMidnight ( ) : bool
Résultat bool

make() public static méthode

public static make ( long year, Month month, long day, long hour, long min ) : DateTime
year long
month Month
day long
hour long
min long
Résultat DateTime

make() public static méthode

public static make ( long year, Month month, long day, long hour, long min, long sec ) : DateTime
year long
month Month
day long
hour long
min long
sec long
Résultat DateTime

make() public static méthode

public static make ( long year, Month month, long day, long hour, long min, long sec, long ns ) : DateTime
year long
month Month
day long
hour long
min long
sec long
ns long
Résultat DateTime

make() public static méthode

public static make ( long year, Month month, long day, long hour, long min, long sec, long ns, TimeZone tz ) : DateTime
year long
month Month
day long
hour long
min long
sec long
ns long
tz TimeZone
Résultat DateTime

makeTicks() public static méthode

public static makeTicks ( long ticks ) : DateTime
ticks long
Résultat DateTime

makeTicks() public static méthode

public static makeTicks ( long ticks, TimeZone tz ) : DateTime
ticks long
tz TimeZone
Résultat DateTime

midnight() public méthode

public midnight ( ) : DateTime
Résultat DateTime

min() public méthode

public min ( ) : long
Résultat long

minus() public méthode

public minus ( Duration duration ) : DateTime
duration Duration
Résultat DateTime

minusDateTime() public méthode

public minusDateTime ( DateTime time ) : Duration
time DateTime
Résultat Duration

month() public méthode

public month ( ) : Month
Résultat Month

nanoSec() public méthode

public nanoSec ( ) : long
Résultat long

now() public static méthode

public static now ( ) : DateTime
Résultat DateTime

now() public static méthode

public static now ( Duration tolerance ) : DateTime
tolerance Duration
Résultat DateTime

nowTicks() public static méthode

public static nowTicks ( ) : long
Résultat long

nowUnique() public static méthode

public static nowUnique ( ) : long
Résultat long

nowUtc() public static méthode

public static nowUtc ( ) : DateTime
Résultat DateTime

nowUtc() public static méthode

public static nowUtc ( Duration tolerance ) : DateTime
tolerance Duration
Résultat DateTime

plus() public méthode

public plus ( Duration duration ) : DateTime
duration Duration
Résultat DateTime

sec() public méthode

public sec ( ) : long
Résultat long

ticks() public méthode

public ticks ( ) : long
Résultat long

time() public méthode

public time ( ) : Time
Résultat Time

toCode() public méthode

public toCode ( ) : string
Résultat string

toHttpStr() public méthode

public toHttpStr ( ) : string
Résultat string

toIso() public méthode

public toIso ( ) : string
Résultat string

toJava() public méthode

public toJava ( ) : long
Résultat long

toLocale() public méthode

public toLocale ( ) : string
Résultat string

toLocale() public méthode

public toLocale ( string pattern ) : string
pattern string
Résultat string

toRel() public méthode

public toRel ( ) : DateTime
Résultat DateTime

toStr() public méthode

public toStr ( ) : string
Résultat string

toTimeZone() public méthode

public toTimeZone ( TimeZone tz ) : DateTime
tz TimeZone
Résultat DateTime

toUtc() public méthode

public toUtc ( ) : DateTime
Résultat DateTime

tz() public méthode

public tz ( ) : TimeZone
Résultat TimeZone

tzAbbr() public méthode

public tzAbbr ( ) : string
Résultat string

weekOfYear() public méthode

public weekOfYear ( ) : long
Résultat long

weekOfYear() public méthode

public weekOfYear ( Weekday startOfWeek ) : long
startOfWeek Weekday
Résultat long

weekday() public méthode

public weekday ( ) : Weekday
Résultat Weekday

weekdayInMonth() public static méthode

public static weekdayInMonth ( int year, int mon, int weekday, int pos ) : int
year int
mon int
weekday int
pos int
Résultat int

weekdayInMonth() public static méthode

public static weekdayInMonth ( long year, Month mon, Weekday weekday, long pos ) : long
year long
mon Month
weekday Weekday
pos long
Résultat long

year() public méthode

public year ( ) : long
Résultat long

Property Details

m_defVal public_oe static_oe property

public static DateTime,Fan.Sys m_defVal
Résultat DateTime