GMT to PST


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting GMT to PST
# 1  
Old 06-18-2010
GMT to PST

I have a file which is tab delimited, it contains the GMT date.
Please tell me how to convert from GMT to PST time and if the date and time is of 2 days ago from the current date store the lines in a file or else remove the line.
Code:
10.1.10.178  -       -       [15/Jun/2010:23:30:34    +0000]      -
10.1.10.178  -       -       [16/Jun/2010:23:30:34    +0000]      -

# 2  
Old 06-18-2010
This seems to be no different from this thread: https://www.unix.com/showthread.php?t=138497
# 3  
Old 06-18-2010
Quote:
Originally Posted by Scrutinizer
This seems to be no different from this thread: https://www.unix.com/showthread.php?t=138497
Agreed, thread closed.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Converting timestamp from PST to UTC

I need to convert the given datetime from PST to UTC, i gone through multiple forum examples but everywhere it mentioned about converting the server datetime. So could someone help me on this. I will be getting arguments for my script in the format of yyyymmddhh (eg:2015101004 - it will be pst),... (4 Replies)
Discussion started by: close2jay
4 Replies

2. Windows & DOS: Issues & Discussions

Reading MS Outlook pst file

I found a few products that claim to be able to recover deleted emails. Any recommendations? (1 Reply)
Discussion started by: jgt
1 Replies

3. Solaris

Changing the timezone to GMT+1

Hello everyone, Can you please help me with this problem? I want to change the timezone of my Solaris 10 system. I found on internet that I should do the following steps: 1- Edit the /etc/TIMEZONE file 2- restart the system : init 6 My question is : In the file /etc/TIMEZONE I should... (5 Replies)
Discussion started by: adilyos
5 Replies

4. Shell Programming and Scripting

Calculate time difference between pst and pdt dates in perl

Hi, how to calculate the time difference between PST date and PDT date in perl scripting. date1: Mon Dec 31 16:00:01 PST 2015 date2: Tue Mar 19 06:09:30 PDT 2013 and also difference between PST-PST and PDT-PDT need difference in months or days (months prefereble). (3 Replies)
Discussion started by: praveen265
3 Replies

5. UNIX for Dummies Questions & Answers

GMT to PST

99.60.97.205 - - GET /2009-03-29/world/impact.row.atlantic_1_rower-paul-ridley-cancer-research?_s=PM:WORLD HTTP/1.1 200 9386 www.abc.com Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13 ... (4 Replies)
Discussion started by: sandy1028
4 Replies

6. Shell Programming and Scripting

Help me about gmt scripts

does somebody know GMT mapping? please reply (2 Replies)
Discussion started by: SANGUINE
2 Replies

7. UNIX for Advanced & Expert Users

changing sys clock (PST to UTC)

Hi I'm trying to change my sys clock from PST to UTC. I've read the man date page it helpfully says :- -u, --utc, --universal print or set Coordinated Universal Time as root I have tried date --universal, date -u, date --utc, I have checked the /etc/sysinfo/clock file the... (5 Replies)
Discussion started by: OFFSIHR
5 Replies
Login or Register to Ask a Question