(landing for joduinn) generate BuildID with up to the second resolution. b=431270, r=ted.mielczarek

This commit is contained in:
Chris Cooper 2008-08-07 14:10:47 -04:00
parent f92d5391d2
commit 21305f1861
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ sub daysFromBuildID
{
my ($buildid,) = @_;
my ($y, $m, $d, $h) = ($buildid =~ /^(\d{4})(\d{2})(\d{2})(\d{2})$/);
my ($y, $m, $d, $h) = ($buildid =~ /^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})$/);
$d || die("Unrecognized buildid string.");
my $secondstodays = 60 * 60 * 24;

View File

@ -12,7 +12,7 @@ o.add_option("--print-buildid", action="store_true", dest="print_buildid")
(options, args) = o.parse_args()
if options.print_buildid:
print datetime.now().strftime('%Y%m%d%H')
print datetime.now().strftime('%Y%m%d%H%M%S')
sys.exit(0)
if not options.buildid: