.
Virtual Promote Search Engine Forums Free Website Templates  
.

 

 




iWeb Toolkit: Convert To and From Unix Epoch Timestamps

0 ) { $calc = $HTTP_POST_VARS[days] * 86400; if ( $HTTP_POST_VARS[operand] == "plus" ) { $stamp = $current + $calc; } elseif ( $HTTP_POST_VARS[operand] == "minus" ) { $stamp = $current - $calc; } } else { $stamp = $current; } $date = date("m/d/Y h:m:s", $stamp); $converted_value = "

Converted Value: $date

"; } elseif ( $HTTP_POST_VARS[type] == "date" ) { $stamp = mktime ( $HTTP_POST_VARS[hh], $HTTP_POST_VARS[mm], $HTTP_POST_VARS[ss], $HTTP_POST_VARS[month], $HTTP_POST_VARS[day], $HTTP_POST_VARS[year] ); $converted_value = "

Converted Value: $stamp

"; } else { $converted_value = ""; } ?>
Convert Unix Timestamp to Real Date/Time
Timestamp: days
Convert Real Date/Time To Unix Timestamp
Month: Day: Year:
HH: MM: SS:

 

 

Sponsored Links

Search for a Free Domain
The Virtual Promote Toolkit is hosted by the experts at SimpleNet. You should be, too! Whether building a new site or transferring one, there is no other hosting platform comparable to SimpleNet’s; hosting for less than $5/month.
Search for the following tlds: .com, .net, .org, .info, .biz, & .us
Already have a domain or site? Move it to SimpleNet


spacer

 

 

     

© 1995  ·  iWeb, Inc DBA JimWorld Productions