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-publish](https://github.com/tsdotnet/date-time/workflows/npm-publish/badge.svg) [![npm version](htt

23 lines (22 loc) 856 B
/*! * @author electricessence / https://github.com/electricessence/ * @license MIT */ import * as Gregorian from './Calendars/Gregorian'; import JsDateConvertible from './JsDateConvertible'; import TimeStampValue from './TimeStampValue'; 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;