Time

Library for getting basic information about the time.


Source: pkg/lua/lib/time.go | Import: time

Functions


now_ms

now_ms() -> int

Return Values

  • int - The current time in ms.
now_mc

now_mc() -> int

Return Values

  • int - The current time in mc.
now_date

now_date() -> string

Return Values

  • string - The current date in MM-DD-YEAR format.
now_timestamp

now_timestamp() -> string

Return Values

  • string - The current time in the default format.
now_format

now_format(format) -> string

Arguments

  • format string - Go time format string.
Return Values

  • string - The current time in given format.
fps_to_ms

fps_to_ms(fps) -> int

Arguments

  • fps int
Return Values

  • int
ms_to_fps

ms_to_fps(ms) -> int

Arguments

  • ms int
Return Values

  • int

Constants


Weekday
  • WEEKDAY_SUNDAY
  • WEEKDAY_MONDAY
  • WEEKDAY_TUESDAY
  • WEEKDAY_WEDNESDAY
  • WEEKDAY_THURSDAY
  • WEEKDAY_FRIDAY
  • WEEKDAY_SATURDAY