Date: Fri, 16 Apr 2004 12:05:24 -0400 From: "JJB" <Barbish3@adelphia.net> To: "freebsd-questions@FreeBSD. ORG" <freebsd-questions@FreeBSD.ORG> Subject: perl script help Message-ID: <MIEPLLIBMLEEABPDBIEGAEBCFMAA.Barbish3@adelphia.net>
next in thread | raw e-mail | index | archive | help
I need $timezone to hold the time zone in this format -00:00 The command date +%z will give it as -0000 I know nothing about writing perl scripts. Can somebody show me how to add the : in the output of the date command in the simple following script? The cat statement is just so I can see results are correct. #!/usr/bin/perl $timezone=date +%z; cat $timezone
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MIEPLLIBMLEEABPDBIEGAEBCFMAA.Barbish3>