Get Dusk, Night timings

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
Parel803
Posts: 962
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Get Dusk, Night timings

Post by Parel803 »

Good evening,

Is it possible to get the Z-time of the Dusk for a specific position.

With:

Code: Select all

local c = ScenEdit_GetUnit({name='Kraljevo-Lađevci AB', guid='KO61QJ-0HN39901G4NCA'})
local tod = ScenEdit_GetTimeOfDay({latitude=c.latitude, longitude=c.longitude})
print (tod)
I got the current but can I kown the dusk, night and dawn time for a specific position, unit or on a contact in advance.
Or is there a simple way?
I found some internet site but hard to get past time specific dates.

regards GJ
Nikel
Posts: 3234
Joined: Tue Mar 24, 2009 10:51 am

Re: Get Dusk, Night timings

Post by Nikel »

Parel803
Posts: 962
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Re: Get Dusk, Night timings

Post by Parel803 »

Thx, appriciated.
regards GJ
Post Reply

Return to “Lua Legion”