UNPKG

typescript-dotnet-core

Version:

A the core classes and utilities of a JavaScript-Friendly .NET Based TypeScript Library.

25 lines (24 loc) 939 B
/*! * @author electricessence / https://github.com/electricessence/ * Licensing: MIT https://github.com/electricessence/TypeScript.NET-Core/blob/master/LICENSE.md */ import ITimeStamp from "./ITimeStamp"; import IDateTime from "./IDateTime"; import { Gregorian } from "./Calendars"; /** * An alternative to Date or DateTime. Is a model representing the exact date and time. */ export declare class TimeStamp implements ITimeStamp, IDateTime { readonly year: number; readonly month: Gregorian.Month; readonly day: number; readonly hour: number; readonly minute: number; readonly second: number; readonly millisecond: number; readonly tick: number; constructor(year: number, month: Gregorian.Month, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number, tick?: number); toJsDate(): Date; static from(d: Date | IDateTime): TimeStamp; } export default TimeStamp;