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
4
votes
2 answers

Unable to convert a given Local Date to GMT Date using Java 8

I'm having hard time converting a given local date (which is in IST) to GMT using Java 8 classes LocalDateTime and ZonedDateTime. Consider the following code snippet. LocalDateTime ldt = LocalDateTime.parse("22-1-2015 10:15:55 AM",…
Aryan Venkat
  • 679
  • 1
  • 10
  • 34
4
votes
1 answer

python convert 10 digits datetimestamp to 13 digit GMT timestamp

I receive a timestamp from a server like this 1512543958 & when i send back requests in headers i see a 13 digit GMT time stamp like this 1512544485819 By changing the time to local using the code below i get 2017-12-06…
Shekhar Samanta
  • 875
  • 2
  • 12
  • 25
4
votes
2 answers

Convert datetime in GMT+# format to GMT

i have an input format like this, and i need to convert it to GMT format: $input = array( "gmt" => "+7", "datetime" => "2017-10-10 12:10:12" ); the input data contain gmt array index which show the which gmt format,…
Shell Suite
  • 680
  • 1
  • 6
  • 18
4
votes
2 answers

Java API to get daylight saving boundaries for a year

I have a date range (start and end date) and require to know whether this falls within a Daylight Saving change over. Is there any Java API available to check this or any Java code to achieve this?
bpa.mdl
  • 396
  • 1
  • 5
  • 19
4
votes
1 answer

Remove BST and GMT from my data in R and just view the time

I am trying to find the timestamp in R so I used the anytime function as follows: Timestamp = anytime::anytime(paste(Date, Time)) but then I realise that the timestamp has BST and GMT. How can I get my timestamp without GMT or BST? Thank…
N.A.K
  • 35
  • 6
4
votes
2 answers

How to Convert to UTC

I'm getting dates & times from various sources (e.g. file's date/time from FTP server, email's date/tiem received, etc.) and need to store them all as UTC (so they all have a common reference). How do I do this? What pieces of information do I need…
StackOverflowNewbie
  • 39,403
  • 111
  • 277
  • 441
4
votes
2 answers

How Do I Get GMT+01:00 with php

Please I have search through stackoverflow and couldn't find the right answer to this. I want to output a date for my country Nigeria on a website. Nigeria timezone is GMT+01:00 I have this
coder2014
  • 43
  • 1
  • 1
  • 6
4
votes
3 answers

Check if DST is in effect

In PHP, date('I') will tell me if Daylight Savings Time is in effect. Does this tell me if DST is in effect specifically for my server's configured timezone, or whether or not it's in effect period? I'm in Arizona where we don't observe DST. So I…
Nick Coons
  • 3,682
  • 1
  • 19
  • 21
4
votes
2 answers

How to convert UTC formatted string to calendar in specific timezone?

I'm trying to convert some string that is in UTC time to a java Calendar object that should be set to GMT-5. My current UTC string input is this: UTC date : 20050329174411 I use this code (I detect the 'pattern' as shown below): DateFormat…
code-gijoe
  • 6,949
  • 14
  • 67
  • 103
4
votes
2 answers

Are timezones with the same GMT offset different in any way?

Windows asks users to choose from about 200 timezones, when there are actually only 25 GMT offsets. (see below) Can I ask users in my app to chose from these alone? Is there any difference between timezones that have the same GMT offset? (eg:…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
3
votes
3 answers

PHP file modified time use GMT offset setting to report correct time

I'm currently reporting file modified time like so: $this->newScanData[$key]["modified"] = filemtime($path."/".$file); $modifiedtime = date($date_format." ".$time_format, $this->newScanData[$key]["modified"]); To me I thought there was nothing…
Scott
  • 3,967
  • 9
  • 38
  • 56
3
votes
2 answers

Convert a String with GMT to DateTime Format - php

I face this problem to integrate bKash Online Payment Gateway API. The Documentation is here - https://developer.bka.sh/docs/create-payment-1. In 'Create Payment' section bKash return paymentCreateTime string as following…
Sanaulla
  • 1,329
  • 14
  • 13
3
votes
0 answers

How to get actual time in offline-first app

What would you recommend to get the GMT time in mobile application even if the user change his/her local time zone or time manually? In my app, users may take offline actions and I should record actualization time of these actions. Since this app is…
Adem Özay
  • 59
  • 2
  • 4
3
votes
4 answers

Timezone CEST to GMT

I have to input the date time in this format : "2018-07-17T12:16:50.52Z" Hence I am using : private static final SimpleDateFormat LIVETRACK_DATE_TIME_FORMATTER = new…
pgman
  • 493
  • 3
  • 12
  • 21
3
votes
6 answers

Conversion to unix timestamp incorrect

I have a function that I wrote (if there is a good standard substitute, please let me know...) time_t get_unix_time(string time_str) { time_t loctime; time(&loctime); struct tm *given_time; time_str = time_str.substr(0,…
Sagar
  • 9,456
  • 6
  • 54
  • 96