in reply to Convert time to todays time

It's a really good idea to specify which things you actually want to import:
use POSIX qw/mktime strftile/;
POSIX has a lot of symbols that take a fair amount of time and memory (as well as potentially conflicting with other stuff you have).

Replies are listed 'Best First'.
Re^2: Convert time to todays time
by jeffa (Bishop) on Jun 08, 2004 at 21:12 UTC

    And if you don't have POSIX installed, you can try Time::Piece instead:

    use Time::Piece; my $today = localtime->strptime(localtime->strftime('%F'), '%F'); my $hours = localtime->strptime('08:30:12','%I:%M:%S'); print $today->epoch + $hours->epoch;

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)