Page MenuHomeFeedback Tracker

Add command to get machine time and date
Closed, ResolvedPublic

Description

A command which would get the time and date of the machine it was executed on would be very handy.

It would allow us to create histories and save data with time and date similar to the load mission interface of Eden Editor.

Details

Severity
Feature
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

R3vo created this task.Apr 8 2020, 12:37 PM
This comment was removed by dedmen.
dedmen claimed this task.Apr 14 2020, 1:23 PM
dedmen changed the task status from New to Assigned.
dedmen added a subscriber: dedmen.
This comment was removed by dedmen.

Additional request, make it a function that returns unix time that can accept parameters to format it to certain date formats and allow a local and UTC parameter

This comment was removed by dedmen.
dedmen changed the task status from Assigned to Feedback.Jul 10 2020, 5:58 PM

systemTime/systemTimeUTC 1.99

LouMontana closed this task as Resolved.Nov 3 2020, 2:06 PM

Would be great if systemTime accepted time offset argument so we can easily display server time. The idea is following: Get how much your time is offset from the server and feed the number of hours as arguments into the command. Yes, you can calculate all that with SQF, but when you need to display timer constantly, this eats a bit of CPU time when it could be handled by the engine very efficiently.

<Array> = systemTime <Number>

Perhaps a command to return current UTC time zone offset to make it even more streamlined?

<Number> = timeZoneUTC

Other possible applications:

  • Getting time of specific time zone for whatever reason.
  • Obtaining time zones of other players and displaying their local time.

@SaMatra please make a new request - otherwise this will get missed

@SaMatra please make a new request - otherwise this will get missed

Sure, just wanted to see what others think about it first.