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

Time issue in my ios app?

I am inserting some data to database through my app & viewing the inserted data on app. My location can be anywhere say it is in india,Australia,uk,usa etc it means different time zones. My server is located to some other country. Every time i…
TechChain
  • 8,404
  • 29
  • 103
  • 228
0
votes
2 answers

convert GMT time object to local time iOS

I want to convert GMT Time which obtained from web service. I am getting the object like this dateTime: { date: 23 day: 3 hours: 6 minutes: 13 month: 8 nanos: 0 seconds: 0 …
TechSavy
  • 797
  • 2
  • 8
  • 22
0
votes
1 answer

Joda DateTime output unexpected difference from gmt

My code: val pattern = "MM-dd-yy" val t = DateTime.parse("07-01-86", DateTimeFormat.forPattern(pattern)).toDateTime(DateTimeZone.forID("GMT")) val z = t.getMillis.asInstanceOf[Long] println("ms= "+z) // expected output: 520560000000 actual…
Greg
  • 10,696
  • 22
  • 68
  • 98
0
votes
2 answers

How to get UTC offset from a phone number in C#

I have a mobile application which authenticates the user via a phone number (similar to Whatsapp's sign in process). After the user has logged in, he can create a TODO notes. When he creates a note he also fills in a date. In the DB, I want to…
Yaron Levi
  • 12,535
  • 16
  • 69
  • 118
0
votes
0 answers

Local and GMT Time don't give a correct result

I'm developing IM app for android, I want to use "Last seen" for the friends to see when there friends went offline. My Idea is: 1. In the client side, When the user leave the App, it will send to the server a special message containing the time in…
Esmaeel Ibraheem
  • 316
  • 2
  • 14
0
votes
0 answers

What is a good practice when we need to work with datetime

I did a travel system, so, this system has many destinations around the world, the website and mobile app of my system are multiple language. What the better way to storage the departure time of each travel in the database? I think that it is better…
Thiago Valentim
  • 500
  • 6
  • 14
0
votes
1 answer

converting negative integer to datetime gmt-3 and mktime - php

EDITED: THIS PART IS WHAT I NEED TO SOLVE: I have a negative integer like: -10800 and I wish to convert this at my local time, which is Buenos Aires (gmt -3). I'm using an online converter to check what date it is so I can check the results:…
Limon
  • 1,772
  • 7
  • 32
  • 61
0
votes
1 answer

How do I simulate an SQL `timestamp` in plain old Ruby?

I am enforcing the output of a datetime as Zulu-Time by doing the following object.updated_at.utc.iso8601 # => "2013-05-12T10:47:01Z" This works fine for a datetime but when the object is persisting to a database as a timestamp instead I get "Sun,…
Dave Sag
  • 13,266
  • 14
  • 86
  • 134
0
votes
1 answer

Loop function within x and y boundaries (return to lower x after upper x iteration)

I've got a question about forming the loop function for processing the earthquake data per bin. Our map is as below, with the data, and runs from -125W to -114W, and 32N to 42N. In order to process the data quickly and efficiently, we should use a…
Conquistador
  • 362
  • 2
  • 5
  • 19
0
votes
1 answer

Retrieve android's OS country list

I am writing an alarm Clock application in android, and I wonder if there is any single way to retrieve android os's countries and cities list along with the GMT setting or can I use native app's setting so that my application work without getting…
Muzirocks
  • 9
  • 5
0
votes
1 answer

How to get unix timestamp from Y-m-d date in JS?

I have this date. 2014-11-15 The timestamp from PHP is 1415984400 How to get this timestamp in Javascript? These are what i tried and the result. Date.parse('2014-11-15').getTime()/1000 Error: Date.parse(...).getTime is not a…
vee
  • 4,506
  • 5
  • 44
  • 81
0
votes
1 answer

Java - how can I obtain a K-hour-shifted TimeZone?

I have a TimeZone variable (DEFAULT_TIME_ZONE) obtained by following code TimeZone DEFAULT_TIME_ZONE = TimeZone.getTimeZone("GMT"); And now I want to get another TimeZone that is shifted K hours from DEFAULT_TIME_ZONE. How can I do that?
Season
  • 1,178
  • 2
  • 22
  • 42
0
votes
1 answer

Event time displaying in GMT after clicking "more details"

My default Google Calendar timezone is "(GMT-05:00) Eastern Time". The event time displays correctly on the calendar and in the initial pop-up window, but if a viewer who is NOT logged in to Google Calendar clicks the "more details>>" link in the…
rsb
  • 11
  • 2
0
votes
2 answers

How to get the unixtimestamp for GMT

The below function gives the unixtime for the current time in the device public static long get_unix_time2(long seconds_since_midnight_gmt, int day_of_month) { long m_time = 0; Calendar cal = Calendar.getInstance(); …
user1382802
  • 618
  • 2
  • 12
  • 24
0
votes
3 answers

Generate Timestamp in IST Timezone java

I am trying to generate current timestamp in GMT timezone but it is still getting generated in IST as my machine is set to IST. I am using this code. Please help!! { String timeZone = "GMT"; Calendar gmtCalendar = …
Gabiesfat
  • 1
  • 1
  • 3