<?php $timezone = "the UK"; $time_diff = "0"; $alter = ($time_diff * 60 * 60); $date_today = date ("l F jS Y", time () + $alter); $time_now = date ("h:ia", time () + $alter); echo "It's currently <strong>$time_now</strong> on <strong>$date_today</strong> in <strong>$timezone</strong>."; ?>
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
Local time/date (See related posts)
You need to create an account or log in to post comments to this site.
Related Posts
» How to setup NTP on BSD in ntpdate ntpd ntp.conf time date
» date time in ruby in ruby time date
» Measure the daily number of ... in email date perl shell bash mime day mailbox
» Calculate Thanksgiving Date in php date calculate thanksgiving holiday timestamp strtotime
» TimeDate format in Oracle - ... in time date oracle format
» Nice Date in date perl
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails