Register
It is currently Thu Sep 18, 2014 7:41 am

oneliner display clock


All times are UTC - 6 hours


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPosted: Sun Jan 24, 2010 5:10 am   

Joined: Sat Nov 07, 2009 5:00 pm
Posts: 7
Hi all ,


I search a way (a one liner ) to display a clock from a specified time zone . More precisly from china zone .

it s a little bit like this command that i found on commandlinefu ( http://www.commandlinefu.com/commands/v ... r-terminal )
Code:
watch -t -n1 "date +%T|figlet"


displaying clock in ascii art on your terminal .
but need one for non local area time zone :)



thankx


Top
 Profile  
 PostPosted: Sun Jan 24, 2010 7:45 am   
User avatar

Joined: Mon Jan 18, 2010 8:10 pm
Posts: 40
Not sure,

But this looks promising, the package "tzwatch" (in Debian synaptic):
Quote:
Displays time and date in specified time zones on console
This shell script displays the time and date of time zones specified by the
user. The time zones may be entered by hand in TZ format or chosen from a
list prepared from /usr/share/zoneinfo/zone.tab. The zone list is kept in a
format consistent with the GTK+ application gworldclock.


I will try it. Also I attempted to download the source code with the package.

BTW... :) I love the 'watch' program with 'figlet'. Would love to see the source for that too!


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP