/** * Time Functions * by: Ramon Alivio Jr. * on: 2005-06-17 **/
class Time {
/** * Returns the time of the day using an integer argument which means the number of seconds from 12:00:00AM * Examples : 32563 (09:02 AM), 53447 (2:50 PM) **/
/** * A reverse of sec_to_string() * Returns the number of seconds from 12:00:00AM using a string argument of the current time of the day. * Example Arguments : 6:02:54PM (64974), 11:05AM (39900) **/
/** * Returns the number of hours, minutes and seconds between two times in a single day * Examples: 12:00:00AM or 12:00AM * Arguments are interchangeable **/
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.