helpers

Module time

Source

Functionsยง

  • Add specified number of days to a UTC datetime
  • Add specified number of hours to a UTC datetime
  • Calculate the difference between two UTC times in seconds
  • Format a datetime as a string
  • Convert local time to UTC time
  • Returns the current local date and time.
  • Get the current Unix timestamp in seconds
  • Get the current Unix timestamp in milliseconds
  • Get the current UTC date and time
  • Convert UTC time to local time