I'm trying to make a skin which has a simple countdown to night-time/daytime in a game.
Right now I have a plethora of issues which I can't wrap my head around. List time!:
The input format: Can I natively convert a string with a format %Y-%m-%dT%H:%M:%S.000Z to a Time, and if not, how should it be formatted? I believe the milliseconds are in the way, but how am i supposed to ignore the 'Z' with RegExp then?
The time on the API is UTC, how do I properly convert it to the system's timezone? I haven't looked into this yet since without a time in the first place it isn't really worth doing, so not priority at all
The .ini file
I'm aware that there is a timeLeft in the API, but that one doesn't update the seconds properly.
I want to retrieve the %Y-%m-%dT%H:%M:%S.000Z string in a format which will successfully convert to a timestamp, so that I can calculate a time difference with the current timestamp, since the %Y-%m-%dT%H:%M:%S.000Z format doesn't want to return any value.
TimeStampFormat Note: These values cannot evaluate any time zone information in the string and cannot be modified with the TimeZone option. What is internally arrived at by the measure is a resolution of the date and/or time string to a Windows timestamp, which is a number of seconds since January 1, 1601, and independent of any time zone.
Mustachio wrote:I want to retrieve the %Y-%m-%dT%H:%M:%S.000Z string in a format which will successfully convert to a timestamp, so that I can calculate a time difference with the current timestamp, since the %Y-%m-%dT%H:%M:%S.000Z format doesn't want to return any value.