utc.d.ts 398 B

12345678910111213141516171819
  1. import { PluginFunc, ConfigType } from 'dayjs'
  2. declare const plugin: PluginFunc
  3. export = plugin
  4. declare module 'dayjs' {
  5. interface Dayjs {
  6. utc(keepLocalTime?: boolean): Dayjs
  7. local(): Dayjs
  8. isUTC(): boolean
  9. utcOffset(offset: number | string, keepLocalTime?: boolean): Dayjs
  10. }
  11. export function utc(config?: ConfigType, format?: string, strict?: boolean): Dayjs
  12. }