C# Class SharpOS.Kernel.Foundation.GregorianCalendar

An implementation of the Gregorian calender that can translate between SharpOS timestamps and Gregorian dates, stored in the universal Time structure.
Inheritance: ICalendar
Datei anzeigen Open project: sharpos/SharpOS

Public Properties

Property Type Description
debug bool

Public Methods

Method Description
AddSeconds ( Time time, int seconds ) : void
AddStrings ( Time time ) : void
DecodeTimestamp ( ulong timestamp, Time out_time ) : void
EncodeTimestamp ( Time time ) : ulong
GetDayOfWeek ( Time time ) : int
GetDayOfWeekString ( uint dayOfWeek ) : string
GetMonthString ( uint month ) : string
GetYearDays ( uint year ) : uint
IsLeapYear ( uint year ) : bool

Private Methods

Method Description
GetMonthDays ( uint month ) : uint
GetMonthDays ( uint month, uint year ) : uint
GetMonthPseudoNumber ( uint month, uint year ) : int

Method Details

AddSeconds() public method

public AddSeconds ( Time time, int seconds ) : void
time Time
seconds int
return void

AddStrings() public method

public AddStrings ( Time time ) : void
time Time
return void

DecodeTimestamp() public method

public DecodeTimestamp ( ulong timestamp, Time out_time ) : void
timestamp ulong
out_time Time
return void

EncodeTimestamp() public method

public EncodeTimestamp ( Time time ) : ulong
time Time
return ulong

GetDayOfWeek() public method

public GetDayOfWeek ( Time time ) : int
time Time
return int

GetDayOfWeekString() public method

public GetDayOfWeekString ( uint dayOfWeek ) : string
dayOfWeek uint
return string

GetMonthString() public method

public GetMonthString ( uint month ) : string
month uint
return string

GetYearDays() public method

public GetYearDays ( uint year ) : uint
year uint
return uint

IsLeapYear() public method

public IsLeapYear ( uint year ) : bool
year uint
return bool

Property Details

debug public_oe property

public bool debug
return bool