Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

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
Sign in to follow this  

×