UNPKG

@tsdotnet/date-time

Version:

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/tsdotnet/date-time/blob/master/LICENSE) [![npm version](https://img.shields.io/npm/v/@tsdotnet/date-time.svg?style=flat-square)](https://www.npmjs

23 lines (22 loc) 865 B
/*! * @author electricessence / https://github.com/electricessence/ * @license MIT */ import * as Gregorian from './Calendars/Gregorian.js'; import JsDateConvertible from './JsDateConvertible.js'; import TimeStampValue from './TimeStampValue.js'; export declare class TimeStamp implements Required<TimeStampValue>, JsDateConvertible { 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); static from(d: Date | JsDateConvertible): TimeStamp; static now(): TimeStamp; toJsDate(): Date; } export default TimeStamp;