luaposix 35.1 Reference

# Module `posix.sys.time`

Get and Set System Date and Time.

## Functions

gettimeofday () | Get time of day.

## Tables

PosixTimeval | Time value.

## Functions

gettimeofday ()
  Get time of day.

  ### Returns:

  PosixTimeval time elapsed since epoch, if successful

  ### Or

  1. nil
  2. string error message
  3. int errnum

  ### See also:

  gettimeofday(2)

## Tables

PosixTimeval
  Time value.

  ### Fields:

  - tv_sec int seconds elapsed
  - tv_usec int remainder in microseconds

  ### See also:

  posix.time.PosixTimespec

generated by LDoc 1.4.6 Last updated 2021-09-09 17:41:28