Jump to content
Sign in to follow this  
moe_botnic

Get current UTC (GMT) Time in modded class

Recommended Posts

Hello,

how do I get the current UTC time in a modded class? Since I can not include anything there (?) I do not know how I would get time_t from <time.h>. I also checked some basic methods already, such as GetGame().*** (like GetGame().GetTime() but this is the ingame time).

Does anyone know such a method or a way I could include time.h? I am new to scripting in Bohemia games.

Thanks in advance

Share this post


Link to post
Share on other sites

Solved

 

static int tbdhour;
static int tbdminute;
static int tbdsecond;
GetHourMinuteSecondUTC(tbdhour, tbdminute, tbdsecond);

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×