Timestamp to days in the current year||doc136015

September 20, 2022

Format

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

Description

Get the timestamp as the day of the year.


Parameters

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

Value Returned

type Description
int Heaven


Code Samples

local dayCount = Lib.getYearDayStr(os.time())