Local time to GMT time


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Local time to GMT time
# 8  
Old 02-15-2017
Dear Xl and all

thanks a lot

---------- Post updated at 05:48 AM ---------- Previous update was at 12:38 AM ----------

Dear Xl

I have added
Code:
    return strftime(fmt, gps / 1E6 + 315964800 - 18)

To get exactly the time -3hs
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Convert GMT date and time to CST

I need away to convert the following GMT date and time value RAW_TME= 042720171530 "mmddccyyhhmm" to Localhost time. In this case it is in central time. Here is what I came up with but it does not look efficient: RAW_TME=042720171530 logmm=`echo $RAW_TME | cut -c1-2` logdd=`echo $RAW_TME |... (4 Replies)
Discussion started by: mrn6430
4 Replies

2. Shell Programming and Scripting

GMT to local Time conversion

How can I convert the following date format: New Log Date = 2016-12-30 23:50:33 GMT from GMT time to local time? Thanks (13 Replies)
Discussion started by: mrn6430
13 Replies

3. Post Here to Contact Site Administrators and Moderators

Server Upgrade Scheduled for Today - 7:30 GMT (2:30 PM Eastern Time)

Dear All, Today, somewhere around 7:30 GMT (2:30 PM Eastern Time) www.unix.com will go down for what we hope is around 15 - 20 minutes as we change out some hardware on the server. Thank you for your patience and support. Neo (0 Replies)
Discussion started by: Neo
0 Replies

4. UNIX for Dummies Questions & Answers

UTC time and Local time

Hi, A few days ago I changed my CentOS box's timezone to -07:00. Now the date commands output look like this (run almost simultaneously, less than 1 second delay).. # date Mon Sep 5 20:23:40 PDT 2011 # date -u Tue Sep 6 03:24:05 UTC 2011 The hours difference seems correct, but why is... (2 Replies)
Discussion started by: forte712
2 Replies

5. Solaris

Enabling time service in local zones

Hi, Is it possible to enable the time service in local zones? E.g. erahmanz1% svcs -a | grep -i time STATE STIME FMRI disabled Sep_10 svc:/network/daytime:dgram disabled Sep_10 svc:/network/daytime:stream disabled Sep_10 svc:/network/time:dgram... (2 Replies)
Discussion started by: ERahman
2 Replies

6. AIX

Convert UTC time to local time ?

Hello, Using AIX6.1 box. I have UTC time value and need to convert it to local time value - I mean time zone and DST should be taken into consideration. I hope it could be done using shell environment - I don't want to write a program. thanks Vilius ---------- Post updated at 02:30 PM... (2 Replies)
Discussion started by: vilius
2 Replies

7. HP-UX

change time mode from BST to GMT

I want to know how to change the time zone from BST to GMT avoid the daylight savings in hp-ux (3 Replies)
Discussion started by: tomjones
3 Replies

8. Shell Programming and Scripting

Script to convert GMT to Asia/Hong Kong time

hi friends, this is my first time with this type of script so please pardon my ignorance. i have this script in which a piece of code needs to be added which can have the Asia/Hong kong time as well. system date and format is GMT so no problem with GMT and even EST is covered..i have ato add new... (5 Replies)
Discussion started by: xejatt
5 Replies

9. Shell Programming and Scripting

Time using Time::Local

Can someone tell me how to get the current date and time in the follwoing format, using Time::Local? MM/DD/YYYY HH:MI:SS AM/PM (1 Reply)
Discussion started by: ssmiths001
1 Replies
Login or Register to Ask a Question
NAME(1) 						      General Commands Manual							   NAME(1)

NAME
ticker - scroll messages across the screen SYNOPSIS
ticker [options] [message] DESCRIPTION
ticker is a program that continually scrolls a given message across the screen. There is also an interface to allow other programs to change the message. KEYS
+, [up arrow] Increase scroll speed. -, [down arrw] Decrease scroll speed. [space] Pause. Press any key to unpause. OPTIONS
-h, --help Show summary of options. -u, --upper Scroll text on the top line of the screen. (Default) -l, --lower Scroll text on the bottom line of the screen. -fcolor, --foreground=color Use the specified color as the forground color of the text that is scrolled. The colors that may be used are: black gray red brightred green brightgreen brown yellow blue brightblue magenta brightmagenta cyan brightcyan lightgray white -bcolor, --background=color Use the specified color as the background color of the text that is scrolled. On most terminals, the background color can only be one of the colors listed in the first column above. -dsecs, --delay=secs Number of seconds delay between updates of the display. This controls how fast the text scrolls. You may use decimals to specify faster scroll speeds. The default delay is 1 second; I find 0.1 more pleasing. -snum, --sysv=num Read messages to display from the sysv shared memory segment with an id of num. This is only for use by other programs that need to be able to change the text ticker displays. -Snum, --size=num Size of the shared memory segment to read, when using shared memory communication with another program. Default is 80 characters. -csecs, --check=secs Minimum time between checks of the shared memory segment for a new message. Default is every second. It may in fact check consider- ably less often, as it only checks for a new message once per time that the current message scrolls around the screen. message The message to scroll. Required unless -s is used, in which case it is optional. NOTES
To use the other 23 or so lines of your screen for something useful while the ticker is running, you might want to use splitvt(1) AUTHOR
Joey Hess <joey@kitenet.net> NAME(1)