C# 클래스 Fan.Sys.DateTime

DateTime represents an absolute instance in time.
상속: FanObj
파일 보기 프로젝트 열기: xored/f4 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
m_defVal DateTime

공개 메소드들

메소드 설명
@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

비공개 메소드들

메소드 설명
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

메소드 상세

@typeof() 공개 메소드

public @typeof ( ) : Type
리턴 Type

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

boot() 공개 정적인 메소드

public static boot ( ) : DateTime
리턴 DateTime

compare() 공개 메소드

public compare ( object obj ) : long
obj object
리턴 long

date() 공개 메소드

public date ( ) : Fan.Sys.Date
리턴 Fan.Sys.Date

day() 공개 메소드

public day ( ) : long
리턴 long

dayOfYear() 공개 정적인 메소드

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
리턴 int

dayOfYear() 공개 메소드

public dayOfYear ( ) : long
리턴 long

dotnet() 공개 정적인 메소드

public static dotnet ( long dotnetTicks ) : DateTime
dotnetTicks long
리턴 DateTime

dotnet() 공개 메소드

public dotnet ( ) : long
리턴 long

dst() 공개 메소드

public dst ( ) : bool
리턴 bool

floor() 공개 메소드

public floor ( Duration accuracy ) : DateTime
accuracy Duration
리턴 DateTime

fromHttpStr() 공개 정적인 메소드

public static fromHttpStr ( string s ) : DateTime
s string
리턴 DateTime

fromHttpStr() 공개 정적인 메소드

public static fromHttpStr ( string s, bool check ) : DateTime
s string
check bool
리턴 DateTime

fromIso() 공개 정적인 메소드

public static fromIso ( string s ) : DateTime
s string
리턴 DateTime

fromIso() 공개 정적인 메소드

public static fromIso ( string s, bool check ) : DateTime
s string
check bool
리턴 DateTime

fromJava() 공개 정적인 메소드

public static fromJava ( long millis ) : DateTime
millis long
리턴 DateTime

fromJava() 공개 정적인 메소드

public static fromJava ( long millis, TimeZone tz ) : DateTime
millis long
tz TimeZone
리턴 DateTime

fromJava() 공개 정적인 메소드

public static fromJava ( long millis, TimeZone tz, bool negIsNull ) : DateTime
millis long
tz TimeZone
negIsNull bool
리턴 DateTime

fromLocale() 공개 정적인 메소드

public static fromLocale ( string s, string pattern ) : DateTime
s string
pattern string
리턴 DateTime

fromLocale() 공개 정적인 메소드

public static fromLocale ( string s, string pattern, TimeZone tz ) : DateTime
s string
pattern string
tz TimeZone
리턴 DateTime

fromLocale() 공개 정적인 메소드

public static fromLocale ( string s, string pattern, TimeZone tz, bool check ) : DateTime
s string
pattern string
tz TimeZone
check bool
리턴 DateTime

fromStr() 공개 정적인 메소드

public static fromStr ( string s ) : DateTime
s string
리턴 DateTime

fromStr() 공개 정적인 메소드

public static fromStr ( string s, bool check ) : DateTime
s string
check bool
리턴 DateTime

getDST() 공개 메소드

public getDST ( ) : bool
리턴 bool

getDay() 공개 메소드

public getDay ( ) : int
리턴 int

getHour() 공개 메소드

public getHour ( ) : int
리턴 int

getMin() 공개 메소드

public getMin ( ) : int
리턴 int

getNanoSec() 공개 메소드

public getNanoSec ( ) : int
리턴 int

getSec() 공개 메소드

public getSec ( ) : int
리턴 int

getTicks() 공개 메소드

public getTicks ( ) : long
리턴 long

getYear() 공개 메소드

public getYear ( ) : int
리턴 int

hash() 공개 메소드

public hash ( ) : long
리턴 long

hour() 공개 메소드

public hour ( ) : long
리턴 long

hoursInDay() 공개 메소드

public hoursInDay ( ) : long
리턴 long

isLeapYear() 공개 정적인 메소드

public static isLeapYear ( int year ) : bool
year int
리턴 bool

isLeapYear() 공개 정적인 메소드

public static isLeapYear ( long year ) : bool
year long
리턴 bool

isMidnight() 공개 메소드

public isMidnight ( ) : bool
리턴 bool

make() 공개 정적인 메소드

public static make ( long year, Month month, long day, long hour, long min ) : DateTime
year long
month Month
day long
hour long
min long
리턴 DateTime

make() 공개 정적인 메소드

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
리턴 DateTime

make() 공개 정적인 메소드

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
리턴 DateTime

make() 공개 정적인 메소드

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
리턴 DateTime

makeTicks() 공개 정적인 메소드

public static makeTicks ( long ticks ) : DateTime
ticks long
리턴 DateTime

makeTicks() 공개 정적인 메소드

public static makeTicks ( long ticks, TimeZone tz ) : DateTime
ticks long
tz TimeZone
리턴 DateTime

midnight() 공개 메소드

public midnight ( ) : DateTime
리턴 DateTime

min() 공개 메소드

public min ( ) : long
리턴 long

minus() 공개 메소드

public minus ( Duration duration ) : DateTime
duration Duration
리턴 DateTime

minusDateTime() 공개 메소드

public minusDateTime ( DateTime time ) : Duration
time DateTime
리턴 Duration

month() 공개 메소드

public month ( ) : Month
리턴 Month

nanoSec() 공개 메소드

public nanoSec ( ) : long
리턴 long

now() 공개 정적인 메소드

public static now ( ) : DateTime
리턴 DateTime

now() 공개 정적인 메소드

public static now ( Duration tolerance ) : DateTime
tolerance Duration
리턴 DateTime

nowTicks() 공개 정적인 메소드

public static nowTicks ( ) : long
리턴 long

nowUnique() 공개 정적인 메소드

public static nowUnique ( ) : long
리턴 long

nowUtc() 공개 정적인 메소드

public static nowUtc ( ) : DateTime
리턴 DateTime

nowUtc() 공개 정적인 메소드

public static nowUtc ( Duration tolerance ) : DateTime
tolerance Duration
리턴 DateTime

plus() 공개 메소드

public plus ( Duration duration ) : DateTime
duration Duration
리턴 DateTime

sec() 공개 메소드

public sec ( ) : long
리턴 long

ticks() 공개 메소드

public ticks ( ) : long
리턴 long

time() 공개 메소드

public time ( ) : Time
리턴 Time

toCode() 공개 메소드

public toCode ( ) : string
리턴 string

toHttpStr() 공개 메소드

public toHttpStr ( ) : string
리턴 string

toIso() 공개 메소드

public toIso ( ) : string
리턴 string

toJava() 공개 메소드

public toJava ( ) : long
리턴 long

toLocale() 공개 메소드

public toLocale ( ) : string
리턴 string

toLocale() 공개 메소드

public toLocale ( string pattern ) : string
pattern string
리턴 string

toRel() 공개 메소드

public toRel ( ) : DateTime
리턴 DateTime

toStr() 공개 메소드

public toStr ( ) : string
리턴 string

toTimeZone() 공개 메소드

public toTimeZone ( TimeZone tz ) : DateTime
tz TimeZone
리턴 DateTime

toUtc() 공개 메소드

public toUtc ( ) : DateTime
리턴 DateTime

tz() 공개 메소드

public tz ( ) : TimeZone
리턴 TimeZone

tzAbbr() 공개 메소드

public tzAbbr ( ) : string
리턴 string

weekOfYear() 공개 메소드

public weekOfYear ( ) : long
리턴 long

weekOfYear() 공개 메소드

public weekOfYear ( Weekday startOfWeek ) : long
startOfWeek Weekday
리턴 long

weekday() 공개 메소드

public weekday ( ) : Weekday
리턴 Weekday

weekdayInMonth() 공개 정적인 메소드

public static weekdayInMonth ( int year, int mon, int weekday, int pos ) : int
year int
mon int
weekday int
pos int
리턴 int

weekdayInMonth() 공개 정적인 메소드

public static weekdayInMonth ( long year, Month mon, Weekday weekday, long pos ) : long
year long
mon Month
weekday Weekday
pos long
리턴 long

year() 공개 메소드

public year ( ) : long
리턴 long

프로퍼티 상세

m_defVal 공개적으로 정적으로 프로퍼티

public static DateTime,Fan.Sys m_defVal
리턴 DateTime