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

Get current time of a specific timezone on a node js server

I need to verify certain transactions on the server side based on some time policies set by the user. The problem I see is that all the policies are relative to user timezone. If I keep only GMT offset I would get problems if the user's timezone go…
Paul Exchange
  • 2,637
  • 3
  • 26
  • 33
2
votes
2 answers

PHP triggering mail functions at a set time and date

I want to check the stock level every day at a certain time (say 11pm GMT) and email a list of items that are low on stock to the admin. I have managed to get the mailing function working but I am struggling to limit the checks to once a day (right…
Rumesh
  • 329
  • 4
  • 12
2
votes
3 answers

Display GMT time zone in php

How can I display like this CountryName GMT +5.30 timezone in php? . The country names are fetching from the database and GMT calculations must be displayed based on the country name. I tried different functions like get_defaulttimezone, But they…
Lakshmi
  • 85
  • 2
  • 7
2
votes
1 answer

ios-ntp framework sync issue

I am using ntp-ios framework downloaded from github in my ipad application to get the GTM time , by using the following code [NetworkClock sharedNetworkClock]; // // gather up the ntp servers ... [NSDate networkDate]; // This will give the…
Shaik Riyaz
  • 11,204
  • 7
  • 53
  • 70
2
votes
1 answer

How to determine UTC offset from server timezone?

I've found many examples about UTC tables and php date methods to convert it, but I still miss a simple way after got server date, to converting it into an user timezone selection on my web page. On this page http://vkham.com/UTC.html I've found a…
vitto
  • 19,094
  • 31
  • 91
  • 130
2
votes
2 answers

Getting date in GMT from unix timestamp

I have written the following code to get the date in GMT from a unix timestamp private Date converToDate(String unixTimeStamp) { //unix timestamps have GMT time zone. DateFormat gmtFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss z…
Vihaan Verma
  • 12,815
  • 19
  • 97
  • 126
2
votes
1 answer

Timezone conversion from GMT to local

I have the following information: string shippedTime = "10:53 AM"; string shippedDate = "12/12/2012"; string shippedTimeZone = "(GMT-05:00) Eastern Time (US & Canada)"; string receivedTime = "10:45 AM"; string receievedDate = "12/13/2012"; I need…
Nicros
  • 5,031
  • 12
  • 57
  • 101
2
votes
3 answers

user datetime setting as GMT, how to convert date to their localized setting?

In my users setting I have a dropdown with all the GMT dates for the user to select. In c#, how would I convert a datetime stored in the database to their GMT time? The time stored in the database is the servers time.
mrblah
  • 99,669
  • 140
  • 310
  • 420
2
votes
2 answers

J2ME Get current time zone

I have a j2me application and it needs to get the name of the current timezone and send it off to the server. However, the only format that I seem to be able to get the phone to give me is "GMT-5:00". What I want the application to do is return the…
Null
  • 103
  • 9
2
votes
3 answers

How to create an advanced countdown timer in JavaScript?

I'm somewhat new to JavaScript but I do have some basic understanding. I want to create a countdown timer that will accept a date and a time, but I am unsure how or where to start. I want the countdown timer to be something like this:…
Hazzle
  • 41
  • 5
2
votes
1 answer

How to get the GMT equivalent using TimeZone ID

I would like to get the GMT equivalent using the TimeZone id Example: Pacific/Fiji ==> should be GMT+13 because DST started on Sun, 21 Oct 2012. But instead, I get GMT+12. Below is my code: public static void main(String[] args){ String…
2
votes
2 answers

java date parsing with GMT in it

The published date String is returned as : Sun, 18 Nov 2012 06:50:02 GMT and my method to convertDate is returning me java.text.ParseException: Unparseable date: "Sun, 18 Nov 2012 06:50:02 GMT" (at offset 8). I checked resources but couldn't find…
Tameem Ahmed
  • 71
  • 1
  • 2
  • 7
2
votes
1 answer

Is there a function to return a TimeZone or an offset based on coordinates?

Is there a function that will return the Time Zone (or an offset from some "fulcrum" such as GMT or UTC) given the coordinates? IOW, I'd like to (assuming "TimeZoneType" is a class or enum or so): TimeZoneType timeZone =…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
2
votes
1 answer

Displaying local time to a user when all you have is an offset (from GMT)

I understand that it's pretty easy to display local time to a user given an offset from GMT for the timezone (e.g. -7 hours for Pacific Daylight Time). But, what if I want to continue to display the correct local time for a long period of time (say…
three-cups
  • 4,375
  • 3
  • 31
  • 41
1
vote
0 answers

Android Time Zone difference with GMT+1 and GMT-1

I have google it, but dont find what is the problem in this code. private Date ConvertToDate(String dateString){ SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm"); Date convertedDate; try { convertedDate =…
user1251064
  • 35
  • 10