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
1
vote
1 answer

Difference between GMT and UTC in Android

The function System.currentTimeMillis() returns the number of milliseconds since January 1, 1970 00:00:00 UTC. The function Date.getTime() returns the number of milliseconds since January 1, 1970 GMT midnight. This is what Android's documentation…
caw
  • 30,999
  • 61
  • 181
  • 291
1
vote
3 answers

datetime , time python

I want to convert a datestring to date in UTC . In addition need to compare this date with current time in UTC and get the difference in milliseconds in python. I looked at python timedelta tzinfo time date datetime But all…
Ashish
  • 851
  • 12
  • 27
1
vote
1 answer

NSTimeInterval in UTC?

I am calculating current time Interval using following codes: NSTimeInterval tInt=[[NSDate date] timeIntervalSince1970]; int tInterval=(int)tInt; Is this timestamp is in utc time ? I need NSTimeInterval in UTC Time. Please help
Tariq
  • 9,861
  • 12
  • 62
  • 103
1
vote
2 answers

Output time with custom format (GMT instead UTC)

I'm wondering how to get time in exactly this format using ruby 1.9.2: I'm using rails 3.1 may be need to setup some environment constants to have it out of box with to_s method? 2011-11-11 15:20:01 GMT+4 instead Time.now.to_s # => "2011-11-11…
user1030981
  • 277
  • 1
  • 3
  • 6
1
vote
0 answers

C# Time conversion to GMT(UK summer Time) with considering Day Light Saving ,Offset on UK & on Hosting Location (US)

Basically I want to convert US time (hosting Server time) to GMT (UK Summer Time) technology C#, .NET 4.0, TimeZoneInfoClass Detailed scenario: I am creating a SMS sending application.It should not send sms from 10.00PM to 6.30 AM UK Time or…
panky sharma
  • 2,029
  • 28
  • 45
1
vote
2 answers

Wrong offset for America/Mexico_City in php DateTimeZone after Daylight Saving Time cancellation

I have a problem with php in converting dates between timezones. In particular using the DateTime and DateTimeZone functions I get that the current offset of America/Mexico_City is -5 hours w.r.t UTC (-18000 seconds) $dateTimeZone = new…
Gioia
  • 81
  • 1
  • 9
1
vote
1 answer

NSDateFormatter gives different output/wrong (GMT?) time

I have tried setting the timezone and locale of the NSDateFormatter but I can't seem to get anything to work. Here is the code NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; [dateFormat setDateFormat:@"MM/dd/yyyy hh:mm:ss"]; NSString…
Eric
  • 11
  • 2
1
vote
1 answer

Working out starting time when user has chosen the gmt time

I have a loop that checks to see if a user's daily game has started based on time(). The event starting time is based on the GMT time that the user has chosen. My problem is that I can't seem to work out how to get the starting time - once a day I…
James Clifton
  • 185
  • 3
  • 14
1
vote
2 answers

Convert GMT_timezone to local datetime in python

I have a date with GMT with different timezones +6 & +5 gmt_time6= "2022-05-06T15:11:29.695GMT+06:00" gmt_time5 = "2022-05-06T14:11:29.785GMT+05:00" How to parse it, that final format will be gmt_time_final6 = "2022-05-06…
LOTR
  • 113
  • 1
  • 1
  • 10
1
vote
1 answer

How to format timestamp in GWT app with given timezone?

I have to format date/time in my gwt app with specific timezone, which is loaded from the server. Possible timezones are like this GMT, GMT+1, GMT-2 etc... Up to now i used DateTimeFormat to format my timestamps, and they used client's…
user358448
  • 1,127
  • 3
  • 20
  • 39
1
vote
1 answer

JS date difference

When I do new Date() on my browser's console. I will get the time that is on my device. Like this Thu Dec 16 2021 17:07:55 GMT+0530 (India Standard Time) But when I do new Date in my node project I got a different time. 2021-12-16T11:37:40.931Z what…
1
vote
1 answer

What does NNN mean in date format ?

hi I has date format and I want converted to correct GMT date : Sample value on that date: 210204215026000C I get this explanation for part NNN : NNN If flag is C or D then NNN is the number of hours relativeto GMT, …
code
  • 79
  • 3
1
vote
1 answer

Calculate time difference between utc date and given date in Javascript

In Javascript, I want to calculate the difference between today'date (but adjusted to GMT0) and a given date 1970/01/01 in miliseconds. On powershell for instance this will be (([datetime]::UtcNow) - (get-date "1/1/1970")).TotalMilliseconds I tried…
Alex
  • 217
  • 1
  • 17
1
vote
2 answers

python convert GMT time into KST time

I want to get the server time for my ticketing program. I firstly used import datetime datetime.datetime.now() But I've noticed that my computer time is not accurate from the real servertime. So I've tried to get time from google.com…
새러엄
  • 41
  • 3
1
vote
2 answers

php "countdown til" and "since time" GMT UTC time function

I'm working with a function I found to do this, but I'm trying to make it work with a GMT utc timestamp: EDIT: Maybe my issue is with how i'm "converting" the user input time to GMT... I was doing $the_user_input_date =…
brybam
  • 5,009
  • 12
  • 51
  • 93