Need the date now + 15min

Hello all,

How can I get a timestamp with 15 min more than current time ?
I want to get it like YYYYMMDD-HHMMSS

Thank you for your answers :b:

Regards

With GNU date:

date +%Y%m%d-%H%M%S -d +15min

With Perl:

perl -e'
( $sec, $min, $hour, $mday, $mon, $year ) =
  ( localtime( time + 15 * 60 ) )[ 0 .. 5 ];
printf "%4d%02d%02d-%02d%02d%02d\n", $year + 1900, $mday, $mon + 1, $hour, $min,
  $sec'

$date -d +15min

Thank you very much ! :b:

On AIX the -d option don't work. I will use the Perl command.