Index: trunk/kernel/include/dates.php =================================================================== diff -u -r13 -r361 --- trunk/kernel/include/dates.php (.../dates.php) (revision 13) +++ trunk/kernel/include/dates.php (.../dates.php) (revision 361) @@ -99,7 +99,21 @@ return $ticks; } + +function DateCurrTimeTimstamp($data, $SourceFormat) +{ + if(strlen($date)) + { + $d = GetDateArray($date,$SourceFormat); + $ticks = adodb_mktime(date("H"),date("i"), date("s"),$d["month"],$d["day"],$d["year"]); + } + else + $ticks = 0; + return $ticks; +} + + /** * convert date from one string format to another *