Timestamp to start of day timestamp||doc136018

September 20, 2022

Format

 Lib.getDayStartTime(time) 
  • The class to which the function belongs:Lib

Description

Get the starting timestamp of the current day.


Parameters

Variable name type Description
time int Timestamp, which can be obtained by os.time()


Value Returned

type Description
int start timestamp


Code Samples

local dayStart = Lib.getDayStartTime(os.time())