Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DateTime

DateTime - basic date time based on moment.js

Hierarchy

  • DateTime

Index

Constructors

constructor

  • Parameters

    Returns DateTime

Properties

kind

Private momentDate

momentDate: Moment

Static MaxValue

MaxValue: DateTime

Static MinValue

MinValue: DateTime

Accessors

Date

  • get Date(): Moment
  • Returns Moment

Kind

TotalMilliSeconds

  • get TotalMilliSeconds(): number
  • Returns number

currentUtcOffset

  • get currentUtcOffset(): number
  • Returns number

Static Now

  • Returns DateTime

Methods

Add

  • Add(quantity: number, unit: string): DateTime
  • Parameters

    • quantity: number
    • unit: string

    Returns DateTime

CompareTo

  • Parameters

    Returns number

Difference

Format

  • Format(formatting: string): string
  • Parameters

    • formatting: string

    Returns string

ToISOString

  • ToISOString(): string
  • Returns string

toString

  • toString(): string
  • Returns string

utcOffset

  • utcOffset(value: number): void
  • Parameters

    • value: number

    Returns void

Static Compare

Static DateTimeToXSDate

  • DateTimeToXSDate(date: DateTime): string
  • Parameters

    Returns string

Static DateTimeToXSDateTime

  • DateTimeToXSDateTime(dateTime: DateTime): string
  • Parameters

    Returns string

Static Parse

  • Parameters

    • value: any
    • Default value kind: DateTimeKind = DateTimeKind.Unspecified

    Returns DateTime

Generated using TypeDoc