Libertas OS API Documentation
    Preparing search index...

    Function utctime

    • Returns the current UTC time when called without arguments, or a time representing the UTC date and time specified by the given table.

      Parameters

      • Optionaltable: LuaDateInfo

        Optional table representation of a UTC time.

      Returns number

      This table must have fields year, month, and day, and may have fields hour (default is 12), min (default is 0), sec (default is 0), and isdst (default is nil). Other fields are ignored.

      The values in these fields do not need to be inside their valid ranges. For instance, if sec is -10, it means -10 seconds from the time specified by the other fields; if hour is 1000, it means +1000 hours from the time specified by the other fields.