class · System
Dates
internal class System.Dates : System.Any
The calendar's arithmetic (proleptic Gregorian, days since 0001-01-01).
- Kind
- class
- Namespace
- System
- Assembly
- System.Core
- Access
- internal, static, abstract
- Source file
Time.ant
Inheritance
- Base classes
-
AnyDates
Methods
Now, in ticks since 1970-01-01 UTC.
The days from 0001-01-01 to a date (not checked): days from 0000-03-01, with January and February the last months of the year before.
The days in a month (both already checked).
The year of a tick count.
The year, month and day of a tick count as year << 9 | month << 5 | day (Neri and Schneider's method,
as .NET does it: one division per part).
Inherited members (5)
GetTypemethod from AnyUndescribedmethod from AnyToStringmethod from AnyHashmethod from Anydestroymethod from Any
Source
Dates as Larva HIR, decompiled from its Larva HIR.
// The calendar's arithmetic (proleptic Gregorian, days since 0001-01-01).
internal class System.Dates : System.Any
{
static method Utc() -> i64
// Now, in ticks since 1970-01-01 UTC.
static method Clock() -> i64
// The days from 0001-01-01 to a date (not checked): days from 0000-03-01, with January and February the
// last months of the year before.
static method DaysOf(year: i32, month: i32, day: i32) -> i64
// The days in a month (both already checked).
static method MonthLength(year: i32, month: i32) -> i32
// The year of a tick count.
static method YearOf(ticks: u64) -> i32
// The year, month and day of a tick count as `year << 9 | month << 5 | day` (Neri and Schneider's method,
// as .NET does it: one division per part).
static method Parts(ticks: u64) -> u32
}