Timestamp to week number of current year||doc136014

September 20, 2022

Format

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

Description

Getting the timestamp is the week of the year.


Parameters

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


Value Returned

type Description
int week number


Code Samples

local weekCount = Lib.getWeeksOfYear(os.time())