Documentation for Win32lib v0.70.18
Table of Contents

Date and time

These routines are used to extract and display system date and time information.


  • func getLocalTime()   Gets the date and time according to your timezone settings.
  • func getSystemTime()   Gets the date and time as UTC (a.k.a. GMT)

    Documentation for Win32lib v0.70.18
    Table of Contents

    [func]
    getLocalTime
    ()

    Gets the date and time according to your timezone settings.

    Returns: SEQUENCE: The date and time (See below for details)

    Category: Date and time

    This does not need any parameters. The date and time are returned based on your system's current timezone settings.

    The return sequence has eight elements arranged thus

  • Year
  • Month
  • DayOfWeek
  • Day
  • Hour
  • Minute
  • Second
  • Milliseconds

    Example:

          sequence tm
          tm = getLocalTime()
    

    See Also: getSystemTime


    Documentation for Win32lib v0.70.18
    Table of Contents

    [func]
    getSystemTime
    ()

    Gets the date and time as UTC (a.k.a. GMT)

    Returns: SEQUENCE: The date and time (See below for details)

    Category: Date and time

    This does not need any parameters. The date and time are returned as UTC (Coordinated Universal Time) which is the old Greenwich Mean Time.

    The return sequence has eight elements arranged thus

  • Year
  • Month
  • DayOfWeek
  • Day
  • Hour
  • Minute
  • Second
  • Milliseconds

    Example:

          sequence tm
          tm = getSystemTime()
    

    See Also: getLocalTime