Questions tagged [gmt]

Greenwich Mean Time (GMT) is a term originally referring to mean solar time at the Royal Observatory in Greenwich, London.

Greenwich Mean Time (GMT) originally referred to mean solar time at the Royal Observatory in Greenwich, London, which later became adopted as a global time standard. It is arguably the same as Coordinated Universal Time (UTC).

Related tag:

Useful Links:

UK: GMT

USA: GMT-5 --- GMT -10

448 questions
0
votes
1 answer

Adding time to a Javascript Date.Now

So I have created a countdown timer in JS but realized my clients site has GMT +2 on the time listing meaning that the counter is not counting down to the correct time. Here is my JS and screenshot of the counter…
0
votes
1 answer

JQuery updating date with specific format and GMT

I just took the JQuery function I found on stackoverflow to update time : $(document).ready(function () { var serverTime = new Date(); function updateTime() { /// Increment serverTime by 1 second and update the html for '#time' …
Kiji_T
  • 104
  • 10
0
votes
1 answer

Synchronizing GMT and Local Times

I'm pulling data from two different sources, both have timestamps. One of the sources uses GMT, and the other uses the time local to their server. I display the information from both of these sources in a list sorted by time. I have users in many…
0
votes
1 answer

Why setDate() is giving the final date in milliseconds in nodejs?

I a trying to save a date to the nextMonth. For that I am first setting the month to next 30 days. But the final output date it is giving me in milliseconds. I want the date in GMT format strictly. What can I do for that? var snm = new Date(); snm =…
Biku7
  • 450
  • 6
  • 16
0
votes
3 answers

iPhone - Strange problem with NSDate, NSString, and Timezones

I've searched and haven't found an exact question like mine, so here goes nothing: I have a NSString containing a key that I pull from an XML feed. The key is a time in 24-hour format (e.g. 13:30 or 15:00.) I'd like to convert the NSString to an…
user737753
0
votes
1 answer

How to convert local time into GMT time zone in Python

Input: datetime.now().time() I need to covert this time into GMT format in python Can anyone help me for this?
Aswathy MA
  • 33
  • 2
  • 9
0
votes
1 answer

How to get UTC offset (timezone) in correct format?

I have code like this that converts an Epoch timestamp into GMT timestamp: #include #include #include std::string getDateTimeZ(size_t epoch) { const time_t time = epoch; const auto timeInfo = *localtime(&time); …
juzzlin
  • 45,029
  • 5
  • 38
  • 50
0
votes
1 answer

GMT Timezone conversion ADDS difference in time rather than subtracts

I'm trying to convert times with this function: import pytz from datetime import datetime def ConvertTimezone(FromZone, timestring, ToZone): print("Start of ConvertTimezone from " + str(FromZone) + " " + timestring + " to " + str(ToZone)) …
FacesOfMu
  • 927
  • 2
  • 7
  • 15
0
votes
2 answers

How to Convert GMT time to Local time

I'm new to python and I need to convert the air_time variable to local machine time or the current_time variable to GMT and then subtract one from other in this script but don't know how to do it. from datetime import datetime air_time_GMT =…
Rezwan
  • 17
  • 1
  • 9
0
votes
0 answers

Install the generic mapping tool (GMT) on Cygwin

I am trying to use GMT on cygwin, but I am unable to do so. I followed this link but could not install gdal due to PROJ 6 error. How can I use GMT functions on Cygwin
ransa
  • 15
  • 8
0
votes
1 answer

TimeZone on Server IIS windows 2012R2

I'm using window server and want to change the time zone of the server to (UTC +7), I changed the timezone and DateTime to UTC +7 and restarted my server, but it seems to be stable for one day. After that, It went back to GMT. How can I fix it…
0
votes
1 answer

GDAL: library not loasded libhdf5.100.dylib

I would like to run a GMT file wrote in tcsh environment. When I'm running it, I have the following error message : dyld: Library not loaded: /opt/local/lib/libhdf5.100.dylib Referenced from: /opt/local/lib/gmt4/bin/gmtset Reason: image not found I…
OcéF
  • 47
  • 8
0
votes
1 answer

datetime append GMT to the end of the string?

I am migrating php code into Python and came across datetime. My code: date_raw = datetime.datetime.strptime(data["Campaign_Start_Date"], '%Y-%m-%d') date_new = date_raw.strftime("%Y-%m-%d"+"T"+"%H:%M:%S GMT") print(date_new) # 2020-09-14T00:00:00…
Chique_Code
  • 1,422
  • 3
  • 23
  • 49
0
votes
1 answer

Timezone difference of 1 hour and 6 seconds between timezones

When entering -5364617481000 into the this page, the time difference between GMT+0 and GMT+1 is 1 hour and 6 minutes. I get the same behaviour from javascript. Whats the cause of this? I would expect 1 hour or maybe half an hour difference.
Kiryu144
  • 89
  • 9
0
votes
1 answer

php convert date in iso gmt format

Hello I need to store a duration (0 à 24h) in my database in the format 1970-01-01T00:00:00.000Z So how to convert a value, Eg-: 2:00 to 1970-01-01T02:00:00.000Z I tried this but the date isn't in GMT format $date = "1970-01-01T00:00:00.000Z"; $v …
fred
  • 23
  • 3