[Veritas-bu] Convert UNIX time to local time?
2002-05-28 06:42:55
Subject: |
[Veritas-bu] Convert UNIX time to local time? |
From: |
CJManders AT lbl DOT gov (Christopher Jay Manders) |
Date: |
Tue, 28 May 2002 03:42:55 -0700 |
Hi,
Not sure if this helps, but I made one of my own commands in PERL
(really very simple). It does what you want...
Here it is:
#!/usr/local/bin/perl
##
## Program: unix-timeconv.pl
## Description: Used to convert a UNIX timestamp
## to the Roman time system.
##
## Released by: Chritopher Jay Manders 03/12/1999 CJManders AT LBL DOT GOV
##
require "ctime.pl";
my $ProgName = $0;
$ProgName =~ s!^.*/!!;
if( $ARGV[0] eq "" ){
print "\nThe time entered does not appear to be a proper
UNIX timestamp.\n";
print "\n\tUsage: ./$ProgName <UNIX timestamp>\n\n";
exit 0;
}else{
my $Time = gmtime( $ARGV[0] );
print "\n$Time\n";
}
exit 0;
Cheers!
Chris
> I searched the FAQ but couldn't come across the answer to this which
> I know has been posted before:
>
> What's the NBU command that will convert the UNIX time as reported by
> several reporting programs and in the image names to local time?
>
> Thanks,
>
> =====
> Jim VandeVegt
> vandevegt AT yahoo DOT com vandevegt AT avaya DOT com
> There is no luck except where there is discipline.
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> _______________________________________________
> Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|