class · System

Dates

internal class System.Dates : System.Any

The calendar's arithmetic (proleptic Gregorian, days since 0001-01-01).

Tipo
class
Espacio de nombres
System
Ensamblado
System.Core
Acceso
internal, static, abstract
Archivo fuente
Time.ant

Herencia

Clases base
Any Dates

Métodos

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

Miembros privados e internos (1)

static method Utc() -> i64
#

private static

Miembros heredados (5)

Código fuente

Dates en Larva HIR, descompilado a partir de su 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