Changeset 161 for trunk/includes


Ignore:
Timestamp:
Mar 18, 2009, 10:34:36 PM (16 years ago)
Author:
maron
Message:

čas do dokončení

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/global_function.php

    r158 r161  
    1616  //$return = StrToLower($return); // velká písmena nahradí malými.
    1717  return($return);
     18}
     19
     20function getmonthyears($Days) {
     21       
     22        $month = floor($Days/30);
     23        $year = floor($month/12);
     24        $Days = $Days - $month*30;
     25        $$month = $month - $year*12;
     26       
     27        return $year.'r '.$month.'m '.$Days.'d';
    1828}
    1929
Note: See TracChangeset for help on using the changeset viewer.