get the normal time


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers get the normal time
# 1  
Old 04-22-2009
get the normal time

i have this script
Code:
#!/bin/sh
for i in Europe/Dublin Europe/Berlin US/Eastern US/Central US/Mountain US/Pacific
do
    export TZ=$i
    case $1 in
	    "") echo "`date`	$i";;
	    *) echo "`date`	$i" | grep $1;;
    esac
done

how would i turn the time into the stand 12 hour time?
# 2  
Old 04-22-2009
Play around with the formats, e.g.:

Code:
date "+%a %d %b %Y%l:%M:%S"

Check the man page of date.

Regards
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Big VG to normal VG

hello, can we convert big vg back to normal VG? and scalable VG to big/normal VG? if yes , how (2 Replies)
Discussion started by: amvineeth
2 Replies

2. AIX

Normal VG to Enhanced Concurrent VG

Hi All, I am going to perform some activity in 2Node HA Server(Active/Passive). For that i have to do some pre-requsite (ie., Resource Group VG's should be Enhanced-Concurrent) In my setup, we have two volume groups in one RG. In that one VG is Normal and another is Enhance Concurrent. ... (2 Replies)
Discussion started by: Thala
2 Replies

3. Red Hat

Normal automount behavior or not?

I'm trying to setup automount on a redhat system and it's behaving differently than on the AIX systems I have it configured on. Here's what I'm seeing on the Redhat system: # mount | grep home /dev/mapper/VolGroup00-lvhome on /home type ext3 (rw) # ls /home user1 user2 user3 # service... (5 Replies)
Discussion started by: homeyjoe
5 Replies

4. Shell Programming and Scripting

float to normal

I have a file with 2 columns . One of the line looks like the following. Is it possible to convert every float no in column 2 to integer. input NM_032881 6.03787973608527e-05 output 0.0000603787..... (2 Replies)
Discussion started by: quincyjones
2 Replies

5. AIX

P5 needs to boot in normal mode

Hi, I do not get to boot an IBM P5 9131-52A in normal mode. I mean I want to get rid of the SMS menu, just an automatic boot to AIX. I installed AIX 5L V5.3. diag give me this when I run "Normal Mode Bootlist | Display Current bootlist": ****************************** CURRENT BOOTLIST... (3 Replies)
Discussion started by: rinunez
3 Replies

6. UNIX for Dummies Questions & Answers

translate to normal english

lnode * head = temp; (1 Reply)
Discussion started by: rickym2626
1 Replies

7. Solaris

Normal LOFS behaviour?

I've got one directory LOFS mounted on top of another (this is to help move from an older standard that we used to follow to a newer one that we will be). Something like this: bash-3.00# df -k | grep /x /dev/md/dsk/d4 77449687 88172 76587019 1% /x /x ... (1 Reply)
Discussion started by: blowtorch
1 Replies

8. Shell Programming and Scripting

Convert Epoch time format to normal date time format in the same file

I have a file named "suspected" with series of line like these : {'protocol': 17, 'service': 'BitTorrent KRPC', 'server': '219.78.120.166', 'client_port': 52044, 'client': '10.64.68.44', 'server_port': 8291, 'time': 1226506312L, 'serverhostname': ''} {'protocol': 17, 'service': 'BitTorrent... (3 Replies)
Discussion started by: rk4k
3 Replies

9. Shell Programming and Scripting

su root from normal user

Got a cron to run everyday under my user. this cronjob runs a script from my /home/jack/scripts/run.sh clear # # su to root and run a script, return with result # su - # passwd # run /getfile.sh # return with result # the result will copy 2 files from /prod/app/logs/ and... (0 Replies)
Discussion started by: karthikn7974
0 Replies
Login or Register to Ask a Question