whether two timestamps are the same day||doc136022

September 20, 2022

Format

 Lib.isSameDay(time1, time2) 
  • The class to which the function belongs:Lib

Description

Determine if two timestamps are the same day.


Parameters

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


Value Returned

type Description
boolean Is it the same day


Code Samples

if Lib.isSameDay(time1, time2) then
    print("todo")
end