#!/usr/bin/perl

# $Id$

use Date::Format;

$uts=$ARGV[0];
if ($uts ne "") 
{ if ($uts !~ /[0-9]+/)
  { die "Please tell Unix Timestamp in Seconds as pure decimal integer!\n"; }
}
if ($uts eq "") { $uts=time(); }
my $sqldate=time2str("%Y-%m-%d %H:%M:%S",$uts);

print "$sqldate\n";
