Veritas-bu

[Veritas-bu] Timestamp of netbakcup's log

2004-10-10 11:53:56
Subject: [Veritas-bu] Timestamp of netbakcup's log
From: dlogcher AT MIT DOT EDU (Dan Logcher)
Date: Sun, 10 Oct 2004 11:53:56 -0400
This is a multi-part message in MIME format.
--------------030300090006000809030905
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

barryide wrote:

>1097058575 1 4 4 oldmail 0 0 0 *NULL* bpsched scheduler found no backups
>due to run
>
>
>Anyone can tell me what the first column such as 1097057552 means?
>Does it mean a timestamp? and how can I calculate the time from these
>column?
>  
>

That's epoch timestamp, the number of seconds since Jan. 1 1970.
Two years ago, I wrote this simple perl script to convert it to readable
format.
It shouldn' take much to have it read in a logfile and spit out readable
format.

#!/usr/local/bin/perl
$usage = "usage: $0 seconds_since_Jan_1_1970\n";
die $usage if $#ARGV || $ARGV[0] !~ /^\d+$/;

require 'ctime.pl';

print &ctime(@ARGV);

-- 
Dan


--------------030300090006000809030905
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=GB2312" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
barryide wrote: <br>
<blockquote cite="mid41673883.9020307 AT cn.fujitsu DOT com" type="cite">
  <div class="moz-text-plain" wrap="true" graphical-quote="true"
 style="font-family: -moz-fixed; font-size: 16px;" lang="zh-CN">
  <pre wrap="">1097058575 1 4 4 oldmail 0 0 0 *NULL* bpsched scheduler found no 
backups
due to run


Anyone can tell me what the first column such as 1097057552 means?
Does it mean a timestamp? and how can I calculate the time from these
column?
  </pre>
  </div>
</blockquote>
<br>
That's epoch timestamp, the number of seconds since Jan. 1 1970.<br>
Two years ago, I wrote this simple perl script to convert it to
readable format.<br>
It shouldn' take much to have it read in a logfile and spit out
readable format.<br>
<br>
#!/usr/local/bin/perl<br>
$usage = "usage: $0 seconds_since_Jan_1_1970\n";<br>
die $usage if $#ARGV || $ARGV[0] !~ /^\d+$/;<br>
<br>
require 'ctime.pl';<br>
<br>
print &amp;ctime(@ARGV);<br>
<br>
<pre class="moz-signature" cols="100">-- 
Dan</pre>
</body>
</html>

--------------030300090006000809030905--