public long SetUtcFullYear(long year, long month, long date) { if (!timestamp.IsValid) { timestamp = EcmaTimestamp.LocalEpoch; } return(SetComponentsUtc(EcmaDateComponent.Year, year, month, date)); }
public long SetFullYear(long year) { if (!timestamp.IsValid) { timestamp = EcmaTimestamp.LocalEpoch; } return(SetComponents(EcmaDateComponent.Year, year)); }
public EcmaDate(long year, long month, long date, long hours, long minutes, long seconds, long milliseconds) : this(EcmaTimestamp.GetTimestamp(EcmaTimestamp.LocalEpoch.Value, 0, year, month, date, hours, minutes, seconds, milliseconds)) { }
public EcmaDate(long year, long month, long date, long hours) : this(EcmaTimestamp.GetTimestamp(EcmaTimestamp.LocalEpoch.Value, 0, year, month, date, hours)) { }
private long SetComponentsUtc(EcmaDateComponent start, params long[] args) { timestamp = (EcmaTimestamp)EcmaTimestamp.GetTimestampUtc(timestamp.Value, (int)start, args); return(timestamp.Value); }
public EcmaDate(long year, long month) : this(EcmaTimestamp.GetTimestamp(EcmaTimestamp.LocalEpoch.Value, 0, year, month)) { }
public EcmaDate(long timestamp) : base(WellKnownObject.DatePrototype) { this.timestamp = new EcmaTimestamp(timestamp); }
public EcmaDate(DateTime dt) : this(EcmaTimestamp.FromNativeDateTime(dt).Value) { }
public long SetTime(long time) { timestamp = new EcmaTimestamp(time); return(timestamp.Value); }