Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #use Math::Round;
- use POSIX;
- use Win32;
- use strict;
- use warnings;
- my $basetime = 1484784000;
- #code with POSIX
- my $days = floor((time()-$basetime) / 86400);
- #code without POSIX
- #my $days = sprintf("%d", (time()-$basetime) / 86400);
- #code with Math::Round
- #my $days = Math::Round::nearest_floor(1, (time()-$basetime) / 86400);
- my $bigString = "We've been going for $days days.n";
- Win32::MsgBox($bigString);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement