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 Using the current DateTime Using a DateTime variable Parameters you can use Calculations Date in # days time Compare Date Time Adjusting Date Time Values Values: MYSQL Date & Time To set a DateTime field to now use: (Don’t add single quotes around it) Is String A DateTime? Convert DateTime […]

Read More