in reply to newbie quest for Image::Grab

Why just not use time? :-) This will give you the "number of seconds from the epoch" format you're looking for.

my $epoch_time = time;