Login +

Documentation

SLS_Date::isTimestamp

Since SillySmart 1.0

Description

Check that date is in timestamp formatWarning: only check syntactically the date (not gregorian)
static bool isTimestamp ( string $date);

Parameters

  • string $date
    the date to check

Return

bool $valid
true if yes, else false

Exemples

  •  var_dump(SLS_Date::isTimestamp("1258478192"));
     // will produce : true
  •  var_dump(SLS_Date::isTimestamp("125847819z"));
     // will produce : false

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.