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

Invalid Date - JavaScript GMT time

I try to run popup window on my website only during specific hours. So I made this code but I got error in console "Invalid Date". I need to set my popup to London time. What can be wrong? jQuery(document).ready(function($){ var date = new…
Mike
  • 159
  • 10
0
votes
2 answers

Convert GMT epoch to CST

I am trying to convert a GMT time which is stored as epoch into CST. Below is the current code I am running in java. if (originalRFC.get("sysmodtime")!=null){ var sysmod = originalRFC.get("sysmodtime"); …
0
votes
1 answer

Convert Time in Eastern time zone and print it in formal time format without GMT-4

time_string="1569834192" #in epoch format. I want to convert it in "US/Eastern" timezone. But The output I get is as follows: 2019-09-30 14:33:12-04:56 I want exact time instead of this -04:56 my code: time_string="1569834192" print…
0
votes
1 answer

UTC to locatime with daylight saving

We are saving all dates in UTC in our database and also saving offset for each user. We are converting to localtime by following function: Private Function ConvertToLocalDateTime(ByVal utcOffset As Integer?, ByVal DateToConvert As DateTime?) As…
skcrpk
  • 558
  • 5
  • 18
0
votes
2 answers

offset current system time to time zone GMT in millisecs

I'm trying to modify the existing java code to output the data in milliseconds instead of seconds. existing code which return current time in GMT in seconds: currentTime = LocalDateTime.now().toEpochSecond(ZoneOffset.UTC); output currentTime =…
0
votes
1 answer

How to convert string to gmt time

I am getting a string that I need converted into GMT time. I think this is correct but I am unsure. t = 'Jan 17 2003 12:00:05:000 AM' t = datetime.datetime.strptime(t,'%b %d %Y %I:%M:%S:%f %p') It prints 2003-01-17 00:00:05, which I believe is…
user3525290
  • 1,557
  • 2
  • 20
  • 47
0
votes
2 answers

How to get RFC1123 Date format for current date time using XSLT 2.0

I am trying to retrieve current date time in RFC1123 date format in XSLT. has anybody tried this using XSL2.0? I have seen code for converting various date times based on zone in XSLT2.0 and to format in specific date time format such yyyy/mm/dd or…
0
votes
0 answers

How to print a geological legend using Generic Mapping Tools?

I want to print a geological legend for a map on which I draw the lithology. I use this for drawing the lihtology: colornames="/GeologyMapColorCodesAndDocumentation/ColorCodesGeologicMap" gmt psxy "${map_repo}lithology.gmt" $reg $proj -L -aZ=Code…
Argent
  • 33
  • 6
0
votes
1 answer

why time.asctime(time.gmtime()) ignores GMT?

I want to get my current time and using from time import * asctime(gmtime()) for this. However, I get the GMT+0 time instead of my local time which is GMT+3: ...$ ipython Python 2.7.12 (default, Nov 12 2018, 14:36:49) Type "copyright", "credits"…
CIsForCookies
  • 12,097
  • 11
  • 59
  • 124
0
votes
1 answer

Get last Sunday within a range of two dates (GMT, DST)

I'm trying to get the last Sunday between two week numbers - in order to avoid DST. IN ORDER WORDS: Start a range of time - from the last Sunday in March to the last Sunday in October. This is my code: $heloo = gmdate('U'); if ( (date("W",…
Buki
  • 127
  • 1
  • 3
  • 10
0
votes
3 answers

Date add GMT to hour

val startHour = SimpleDateFormat("HH:mm").format(pickup.begin()) The pickup.begin value is "Wed Apr 10 10:00:00 GMT+03:00 2019", so I need the start hour to be 10:00 +3h -> 13:00, but I get startHour value of 10:00. I don't know how to add the GMT…
ghita
  • 2,746
  • 7
  • 30
  • 54
0
votes
1 answer

Setting time according to timezone from database

I want to make a system which displays time dependant on the timezone in a particular country. E.g. a table in my database contains country names in one field, and in the column next to it, it will contain GMT-compared timezones like -0100 or…
Daniel Hutton
  • 1,455
  • 1
  • 17
  • 33
0
votes
1 answer

Get UTC offset and DST information for a specific timezone in node?

I need to get UTC offset and DST information for a specific timezone in node.js. In case i use an external web service, it is necessary that the service used is free with unlimited requests if it's possible. Example: if i put Europe/Rome timezone as…
0
votes
0 answers

Is it possible that the GMT time in idevice will be distorted?

I have developed a program in Objective-C which sends a GMT timestamp to the server for sorting the data first. I wonder if there is any way to send the time to the server that is not true. I use: long long milliseconds = (long long)([[NSDate date]…
user179549
  • 21
  • 2
0
votes
1 answer

How to convert one timezone to another (GMT+0530)?

This date format 2018-11-11 01:54:16+00:00 should be converted to Nov 11, 2018 7:24:16 AM GMT+0530 Input : 2018-11-11 01:54:16+00:00 Expected : Nov 11, 2018 7:24:16 AM GMT+0530 Actual : Nov 11, 2018 07:24:16 AM IST+0530 I'm able to convert the…
StackGuru
  • 471
  • 1
  • 9
  • 25