Timestamp to start timestamp of the current week||doc136017

September 20, 2022

Format

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

Description

Get the start timestamp of the week corresponding to the timestamp.


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 weekStart = Lib.getWeekStartTime(os.time())