convert the time to unix time, for example, the current time: $unixtime = time(); , then subtract 15 * 60 from it, and then convert to a pretty string with something like
sub display_time { my ($sec,$min,$hour,$mday,$mon,$year,undef,undef,undef) = localtime(time); $year += 1900; $mon += 1; return "$year.".sprintf("%02d.%02d %02d:%02d:%02d",$mon,$mday,$hour,$min,$sec); }
atlau source share