Timestamp to start timestamp of the current month||doc136016

September 20, 2022

Format

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

Description

Get the start timestamp of the month 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 monthStart = Lib.getMonthStartTime(os.time())