typescript-dotnet-amd
Version:
A JavaScript-Friendly .NET Based TypeScript Library.
25 lines (24 loc) • 942 B
TypeScript
/*!
* @author electricessence / https://github.com/electricessence/
* Licensing: MIT https://github.com/electricessence/TypeScript.NET/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;