| Function to return upper and lower time stamp of a given date Function returns the upper and lower time stamp of a given date in dd/mm/yyyy format. checks date in dd/mm/yyy format is valid and return upper/lower limit of timestamp of that day as integer if date is invalid then returns 0 // $upper_or_lower = U or L if date is null this will return current time stamp | |
| function getTimeStamp($Date="",$upper_or_lower="l"){ //checks date in dd/mm/yyy format is valid and return upper/lower limit of timestamp of that day as integer //if date is invalid then returns 0 // $upper_or_lower = U or L //if date is null thsi will return current timestamp $timemsg=""; if(trim($Date)=="") $timemsg=time(); else{ //spilit dates in parts $DateParts = split( "[/-]" , $Date ); if( checkdate($DateParts[1],$DateParts[0],$DateParts[2]) ){ if( strtolower($upper_or_lower)=="u" ) $timemsg=mktime( 23,59,59,$DateParts[1],$DateParts[0], $DateParts[2] ); else $timemsg=mktime( 0,0,0,$DateParts[1],$DateParts[0], $DateParts[2] ); }else $timemsg=0; } return $timemsg; } How to call this function? $lowerTimeStamp= getTimeStamp("22/10/2010","l"); $upperTimeStamp= getTimeStamp("22/10/2010","u"); $currentTimeStamp= getTimeStamp(); | |
Intex Aqua 5.5 VR Plus genuine Review - Dont Buy Intex Aqua 5.5 VR Plus - Board complaint and low battery backup issues
Intex Aqua 5.5 VR Plus Review - Dont Buy Intex Aqua 5.5 VR + - Board complaint and low battery backup issues I bought an Intex Aqua 5.5 VR Plus on April 23, 2018, With in a week it started to show Battery backup issues. Even if it is charged full, it will completely drain out with in 12 or 13 hours. During this time No internet was used, only 2 or 3 calls were done. Some times there was issues with net connection also.

Comments
Post a Comment