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
Any Dates

Methods

static method Clock() -> i64
#

static

Now, in ticks since 1970-01-01 UTC.

static method DaysOf(year: i32, month: i32, day: i32) -> i64
#

static

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 MonthLength(year: i32, month: i32) -> i32
#

static

The days in a month (both already checked).

static method YearOf(ticks: u64) -> i32
#

static

The year of a tick count.

static method Parts(ticks: u64) -> u32
#

static

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).

Private and internal members (1)

static method Utc() -> i64
#

private static

Inherited members (5)

Source

Dates as Larva HIR, decompiled from its Larva HIR.

System.Dates.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
}
Esc