Paste #268167

   
pasted on 05.02.2023 18:06
  • Edit to this paste
  • Print
  • Raw
  • Compare with paste
    #  
  • Toggle line numbers
  • Syntax highlighting  
Text paste
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<?php

$birthday = strtotime("01.01.2000");
$lived = time() - $birthday;
$live = 60 * 365 * 24 * 60 * 60;
$vrem = $live - $lived;
$vremweek = round( $vrem / 60 / 60 / 24 / 7 );
//echo "{$birthday} - {$lived} {$live}\n";
echo "{$vremweek}\n";
?>
Add Comment
Author