Hierarchy

  • TimeSpan

Index

Constructors

constructor

  • new TimeSpan(param1?: number, minutes?: number, seconds?: number, milliseconds?: number): TimeSpan
  • Parameters

    • Default value param1: number = 0
    • Default value minutes: number = null
    • Default value seconds: number = null
    • Default value milliseconds: number = null

    Returns TimeSpan

Properties

ticks

ticks: number

Static maxMilliSeconds

maxMilliSeconds: number = Number.MAX_VALUE / TimeSpan.ticksPerMillisecond

Static maxSeconds

maxSeconds: number = Number.MAX_VALUE / TimeSpan.ticksPerSecond

Static minMilliSeconds

minMilliSeconds: number = 0

Static minSeconds

minSeconds: number = 0

Static ticksPerDay

ticksPerDay: number = TimeSpan.ticksPerHour * 24

Static ticksPerHour

ticksPerHour: number = TimeSpan.ticksPerMinute * 60

Static ticksPerMillisecond

ticksPerMillisecond: number = 1

Static ticksPerMinute

ticksPerMinute: number = TimeSpan.ticksPerSecond * 60

Static ticksPerSecond

ticksPerSecond: number = TimeSpan.ticksPerMillisecond * 1000

Static ticksPerTenthSecond

ticksPerTenthSecond: number = TimeSpan.ticksPerMillisecond * 100

Accessors

days

  • get days(): number
  • Returns number

hours

  • get hours(): number
  • Returns number

milliseconds

  • get milliseconds(): number
  • Returns number

minutes

  • get minutes(): number
  • Returns number

seconds

  • get seconds(): number
  • Returns number

totalDays

  • get totalDays(): number
  • Returns number

totalHours

  • get totalHours(): number
  • Returns number

totalMilliseconds

  • get totalMilliseconds(): number
  • Returns number

totalMinutes

  • get totalMinutes(): number
  • Returns number

totalSeconds

  • get totalSeconds(): number
  • Returns number

Static maxValue

Static minValue

Static zero

Methods

add

  • Parameters

    • value: number

    Returns TimeSpan

add2

negate

toString

  • toString(format?: string): string
  • Parameters

    • Optional format: string

    Returns string

Static compare

Static create

  • create(days?: number, hours?: number, minutes?: number, seconds?: number, milliseconds?: number): TimeSpan
  • Parameters

    • Default value days: number = 0
    • Default value hours: number = 0
    • Default value minutes: number = 0
    • Default value seconds: number = 0
    • Default value milliseconds: number = 0

    Returns TimeSpan

Static fromMilliseconds

  • fromMilliseconds(value: number): TimeSpan
  • Parameters

    • value: number

    Returns TimeSpan

Static fromSeconds

  • Parameters

    • value: number

    Returns TimeSpan

Static fromString

  • fromString(value: string, format?: string): TimeSpan
  • Parameters

    • value: string
    • Default value format: string = null

    Returns TimeSpan

Static fromTicks

  • Parameters

    • value: number

    Returns TimeSpan

Static getNetTypeName

  • getNetTypeName(): string
  • Returns string

Static parse

Generated using TypeDoc