Gjsify LogoGjsify Logo

Represents a time information.

record

Hierarchy

  • Time

Index

Constructors

Properties

name: string

Methods

  • free(): void
  • getFraction(): number
  • Extract fraction of seconds from the instance of #GdaTime

    Returns number

  • getHour(): number
  • getMinute(): number
  • getSecond(): number
  • getTimezone(): number
  • Returns number of seconds to be added to UTC time.

    Returns number

  • setFraction(fraction: number): void
  • Set new value for the second fraction

    Parameters

    • fraction: number

      new second fraction to set to.

    Returns void

  • setHour(hour: number): void
  • Set hour component to the #GdaTime instance.

    Parameters

    • hour: number

      new hours to set to

    Returns void

  • setMinute(minute: number): void
  • Set minutes to the #GdaTime instance

    Parameters

    • minute: number

      new minutes to set to

    Returns void

  • setSecond(second: number): void
  • Set second component

    Parameters

    • second: number

      new seconds to set to

    Returns void

  • setTimezone(timezone: number): void
  • Set timezone component for the instance of #GdaTime

    Parameters

    • timezone: number

      new time zone to set to. See #gda_time_change_timezone

    Returns void

  • toString(): string
  • Creates a string representation of a #GdaTime in local time with the timezone designation.

    Returns string

  • toStringLocal(): string
  • Creates a string representation of a #GdaTime in local time without timezone designation.

    Returns string

  • toStringUtc(): string
  • Creates a string representation of a #GdaTime in UTC time with time zone indication.

    Returns string

  • valid(): boolean
  • A time is always valid, so this method has been deprecated.

    Returns boolean

  • newFromValues(hour: number, minute: number, second: number, fraction: number, timezone: number): Gda.Time
  • Create new instance of #GdaTime from the provided values.

    Parameters

    • hour: number

      hours

    • minute: number

      minutes

    • second: number

      seconds

    • fraction: number

      fraction of seconds

    • timezone: number

      timezone in seconds added to UTC

    Returns Gda.Time

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method