MANDO01 Posted July 14, 2022 Share Posted July 14, 2022 Is there a way to make os.date getting the date online not from the phone ? os.date('TODAY : [%F / %r]')Â Link to comment Share on other sites More sharing options...
HEROGAMEOfficial Posted July 16, 2022 Share Posted July 16, 2022 local a = gg.makeRequest('https://www.whatismyip.org') a = a and a.date and ('' .. a.date):gsub('000.0', '') + 0 a = a and os.date(nil, a) print(a) Â Link to comment Share on other sites More sharing options...
MAARS Posted July 16, 2022 Share Posted July 16, 2022 3 minutes ago, HEROGAMEOfficial said: local a = gg.makeRequest('https://www.whatismyip.org') a = a and a.date and ('' .. a.date):gsub('000.0', '') + 0 a = a and os.date(nil, a) print(a) Â good, i remember i have built my own api to serve timestamp xD, but you can just get it from the http header xD Link to comment Share on other sites More sharing options...
MANDO01 Posted July 16, 2022 Author Share Posted July 16, 2022 8 hours ago, HEROGAMEOfficial said: local a = gg.makeRequest('https://www.whatismyip.org') a = a and a.date and ('' .. a.date):gsub('000.0', '') + 0 a = a and os.date(nil, a) print(a) Â Thanks bro Link to comment Share on other sites More sharing options...
Question
MANDO01
Is there a way to make os.date getting the date online not from the phone ?
os.date('TODAY : [%F / %r]')Â
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.