Server

getDate

Usage

Lib.getDate(time, data)
  • time: number

  • data(optional): object

    • unit: "s" - seconds or "m" - minutes or "h" - hours or "d" - days or "w" - weeks

    • count: number

Example

Lib.getDate(os.time())
Lib.getDate(os.time(), {
    unit = "h",
    count = 6,
})
  • return: object

    • time: number

    • date: string

Last updated