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

How to know the difference of GMT and local time in C++ on Solaris?

I like to calculate the difference of local time (in some timezone) and GMT in terms of number of seconds. I use the following code snippet: time_t now = time(0); // GMT time_t gmnow = mktime(gmtime(&now)); // further convert to GMT presuming now in…
Dr. Debasish Jana
  • 6,980
  • 4
  • 30
  • 69
0
votes
1 answer

NSDate. Convert time and GMT to string with time and zero GMT

The time is given as timestamp (in seconds). I need time only, so I take any date and add this time interval. For example: NSDate *td = [NSDate dateWithTimeIntervalSince1970:interval]; NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init]…
user2083364
  • 744
  • 1
  • 7
  • 20
0
votes
2 answers

Time collection/ calculation of remote hosts

I've to run some reports on a particular host (HOST A). The commands being run on the this host (HOST A) can collect some information from remote servers, but not the 'current' server time of these remote hosts. Also, I don't have permission to…
Marcos
  • 845
  • 3
  • 10
  • 21
0
votes
1 answer

Php timezones and list visited

First, i want to set default timezone for my website for GMT, i found this htaccess: php_value date.timezone "America/Chicago" SetEnv TZ GMT SetEnv TZ Europe/Amsterdam (i know America/Chicago is not GMT ;) ) how should correct option looks…
Mr-Auto
  • 39
  • 6
0
votes
2 answers

How to make PHP date() ignore local GMT setting?

I am storing the time of day as a number of seconds since midnight. I have a number that should be 8:00 am: //3600 secs / hour * 8 = 28800 $time = 28800; var_dump(date('h:i a', $time )); My output is: string(8) "01:00 am" Based on my location, I…
Jage
  • 7,990
  • 3
  • 32
  • 31
0
votes
1 answer

How to get IST(Indian Standard Time) time using actionscript 3

I need to access the ISTusing as3. I don't need system time because i want exact IST.I have tried getTimezoneOffset(), but it shows the difference b/w IST and GMT irrespective of current system time.In my case i strictly needed the IST from the…
Rajesh Kumar
  • 49
  • 2
  • 7
0
votes
0 answers

UTC converted to local time

Someone can explain to me how works the conversion of dates from azure database hosted in GMT 00:00 to client local GMT? exists some way to convert the date automatically with C#? have some related with CultureInfo?
Lucas Konrath
  • 567
  • 2
  • 8
  • 19
0
votes
3 answers

Date function format php

Please can anybody help !! I want the date to be in the following format Wed Oct 09 2013 14:48:26 GMT+0530 (India Standard Time) //this one is what jquery Date(); returns but I am getting it in Wed Oct 09 2013 15:42:38 Asia/Kolkata+0530 (IST) I…
Deepanshu Goyal
  • 2,738
  • 3
  • 34
  • 61
0
votes
1 answer

Python Datetime offset

Do the terms "GMT offset" and "UTC offset" refer to the same "offset"? I.e. if I have a Python/Django timezone-aware datetime called mydt, and I print it this way: In [1]: mydt.strftime('%Y-%m-%dT%H:%M:%S%z') Out[1]: '2013-07-20T23:50:00+0200' Is…
Joseph Victor Zammit
  • 14,760
  • 10
  • 76
  • 102
0
votes
2 answers

Java Convert time back to initial after GMT was applied

I try to convert time back to default one, when GMT conversion was applied. public static void main(String[] args) { // initial time is: 14:43 Calendar cal = Calendar.getInstance(); cal.set(2013, 8, 1, 14, 43, 0); //…
ses
  • 13,174
  • 31
  • 123
  • 226
0
votes
3 answers

datetime timezone converting cakephp / php

i am working on a Cakephp 2.x .. well the problem which i have has nothing to do this with cakephp .. so the scenario is i have a page called settings in which user sets his timezone according to his country and in database i am storing the time…
hellosheikh
  • 2,929
  • 8
  • 49
  • 115
0
votes
3 answers

Android get UTC milliseconds from GMT milliseconds

I have a time variable in GMT and I will convert in UTC. I post my code: long mytime = 1376824500000; Date date = new Date(mytime); String time = new SimpleDateFormat("HH:mm").format(date); This return "13:15" in some device, but I would like to…
Tenaciousd93
  • 3,438
  • 4
  • 33
  • 56
0
votes
1 answer

How to get current time value in GMT in ILog JRule

I have a business requirement where I have to a take one action where current GMT time is between 3 to 11 else I have to take other action. One way to do is to take the current GMT time as input from the caller. I want to explore the possibility,…
Manu
  • 453
  • 2
  • 6
  • 15
0
votes
3 answers

How to get Current Date using GMT in android?

I want Current Date in GMT wise Timezone.I used following code. public static Date getGMTDate(String dateFormat) throws ParseException { SimpleDateFormat dateFormatGmt = new SimpleDateFormat(dateFormat); …
dipali
  • 10,966
  • 5
  • 25
  • 51
0
votes
1 answer

PHP get user's local GMT

How does PHP get locale GMT datetime display as following: 14/06/2013 10:38 (GMT+8) Currently my site have this format to display date time like: 14/06/2013 07:01:14 AM GMT+0400 My hosting service provider is in europe, if the user browse my…
conmen
  • 2,377
  • 18
  • 68
  • 98