Gjsify LogoGjsify Logo

Represents a time information.

record

Hierarchy

  • Time

Index

Constructors

Properties

name: string

Methods

  • free(): void
  • get_fraction(): number
  • get_hour(): number
  • get_minute(): number
  • get_second(): number
  • get_timezone(): number
  • set_fraction(fraction: number): void
  • Set new value for the second fraction

    Parameters

    • fraction: number

      new second fraction to set to.

    Returns void

  • set_hour(hour: number): void
  • set_minute(minute: number): void
  • set_second(second: number): void
  • set_timezone(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

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

    Returns string

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

    Returns string

  • to_string_utc(): string
  • valid(): boolean
  • new_from_values(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