dmi: check both the AC and ID flags at the same time
[syslinux.git] / now.pl
bloba3b5a798a04b14dde61fd3ee3ea73faa096d0696
1 #!/usr/bin/perl
3 # Print the time (possibly the mtime of a file) as a hexadecimal integer
4 # If more than one file, print the mtime of the *newest* file.
7 undef $now;
9 foreach $file ( @ARGV ) {
10 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,
11 $ctime,$blksize,$blocks) = stat($file);
12 if ( !defined($now) || $now < $mtime ) {
13 $now = $mtime;
17 if ( !defined($now) ) {
18 $now = time;
21 printf "0x%08x\n", $now;