Duration

Convert Seconds To Duration Time Format $seconds_input = $video_duration; //The value in seconds (e.g. 1568.782) $hours = (int)(($minutes = (int)($seconds = (int)($milliseconds = (int)($seconds_input * 1000)) / 1000) / 60) / 60); $duration_string = $hours.’:’.($minutes%60).’:’.($seconds%60).((($milliseconds%1000) === 0) ? ” : ‘.’.rtrim($milliseconds%1000, ‘0’));

Read More

Date And Time

Getting Date and Time Elements Parameters you can use Calculations Date in # days time Compare Date Time Adjusting Date Time Values Values: week day hour minute second MYSQL Date & Time To set a DateTime field to now use: (Don’t add single quotes around it) Is String A Date? Convert DateTime See Strings-Values Convert […]

Read More