10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
I am trying to convert local time to time in Ireland. Instead it is going the opposite direction (taking the local time as it if were in Ireland and displaying that the time would be here).
$ echo "$TZ"; date; date --date='TZ="Europe/Dublin" '"$(date)"
Mon, Apr 13, 2015... (7 Replies)
Discussion started by: Michael Stora
Hi. I have timestamps that I am trying to convert to epoch time. An example:
I am trying to convert this to an epoch timestamp but have one little glitch. I have this:
date_time = ''
pattern = ''
epoch = int(time.mktime(time.strptime(date_time, pattern)))
print epoch... (1 Reply)
Discussion started by: treesloth
4. Shell Programming and Scripting
I came across this script online to convert Epoch time to proper date format, but I am receiving the following error
Also, I have HISTTIMEFORMAT set in user's .profile so that their history output shows time stamps. Additionally I have changed their .history location to a dedicated... (9 Replies)
Discussion started by: hedkandi
5. Shell Programming and Scripting
I have a requirement to convert a 12 hour format to 24 hour time format and the sample input /out put is below
Input Time format : Nov 2 2011 12:16AM
Out Put Format : Nov 2 2011 0:16
Input : Nov 2 2011 4:16PM
Out Put: Nov 2 2011 16:16
I have done this using a... (6 Replies)
Discussion started by: jambesh
6. Shell Programming and Scripting
i've got an input file that contains
where 1st column is epoch time while the second column are some string.
I'm using nawk to do regular expression on the 2nd column and i need to convert the epoch time to human readable time e.g. 'yyyymmdd... (5 Replies)
Discussion started by: bing
7. Shell Programming and Scripting
My local server is in UTC time whereas my remote server in in CST time.
I get a sequential file from CST time server and the records in will contain the first line as a filename and the second line as date time like mentioned below.
2009-04-28 23:10:05 CST
Now i need to... (3 Replies)
Discussion started by: HemaV
8. Windows & DOS: Issues & Discussions
help me to convert unix time format into windows time format using java
i have linux time ex. 1075329297.572 (2 Replies)
Discussion started by: sari
I have written a code to get current time
struct tm *locTime;
time( ¤tTime );
locTime = localtime(¤tTime );
Suppose now i get output time as 31-DEC-2007 00:00:00
What i want now is i want two strings where in one string i want to subtract... (1 Reply)
Discussion started by: electroon
10. Shell Programming and Scripting
i want a perl/shell script which once invoked should convert a set of EPOCH timestamps to local time ( IST..i want) .
how does it work ,i have an idea on that..but writing a perl/shell script for it is not possible for me...so i need help for the same.
my exact requirement is... (2 Replies)
Discussion started by: abhijeetkul