WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : sec2hms : Convert number of seconds to HH:MM:SS format
Categories : PHP, Date Time Update Picture
Stathis Rouvas
Date : Apr 01st 2002
Grade : 4 of 5 (graded 5 times)
Viewed : 6226
File : sec2hms.php
Images : No Images for this code example.
Search : More code by Stathis Rouvas
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

<?

//
// modified by rouvas@di.uoa.gr, 2000/10/01
// original: Scott Sinclair (scott@uq.edu.au) submitted at www.zend.com
//
// $Id: sec2hms.php,v 1.8 2000/12/04 20:55:52 rouvas Exp $
// $Revision: 1.8 $
//
// Convert $num_secs to Hours:Minutes:Seconds

function sec2hms($num_secs) {
$str = '';

$hours = intval(intval($num_secs) / 3600);
$str .= $hours.':';

$minutes = intval(((intval($num_secs) / 60) % 60));
if ($minutes < 10) $str .= '0';
$str .= $minutes.':';

$seconds = intval(intval(($num_secs % 60)));
if ($seconds < 10) $str .= '0';
$str .= $seconds;

return($str);
}

?>



Functions used to define a schedule of holidays. Can define non-fixed holidays (eg. 3rd sunday of June).
Categories : Calendar, Date Time, PHP
PHP Calendar
Categories : PHP, Calendar, Date Time, Java Script, CSS
calculus of the eastersunday
Categories : BC math, PHP, Date Time, Databases
Select with current month
Categories : PHP, HTML and PHP, Date Time, Arrays
PHP Round Clock - Must have Gif support to use this.
Categories : PHP, Date Time, Graphics
This script contains 2 functions: 1 to create html select object based on your own customer date format entry- "M d Y h:i.... etc". The second function processes the select object on submit back to unix time.
Categories : PHP, Calendar, Date Time, HTML and PHP
Website colour changer
Categories : PHP, HTML and PHP, Date Time
Calendar, Kalender, date, time, day, month, year
Categories : PHP, Date Time, Calendar
List people whose birthdays fall on the current Day and Month
Categories : Databases, Date Time, MySQL, PHP
Validator - A PHP class that can can be used for validating Email IDs and Dates
Categories : PHP, PHP Classes, Data Validation, Email, Date Time
In Mysql, the 'datetime' data type is used to store date that looks like '2007-10-16 16:26:30'. we are going to design a function called mysqldate() that takes a mysql date and output format as input and outputs a well formated date.
Categories : PHP, Date Time, Databases, MySQL
A simple and fast calendar combining PHP and tables. Use this as a base for applications in which a calendar is needed.
Categories : Date Time, PHP, Complete Programs, Calendar
Calendar using Date function
Categories : HTML and PHP, PHP, Date Time, Calendar
Data Retrieve from Mysql using AJAX with PHP
Categories : PHP, AJAX, Date Time, Databases, MySQL
A Timing Class
Categories : PHP, PHP Classes, Date Time