News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint WebTech Blog:
Give Your Visitors a Rough Time
March 06, 2008 @ 08:44:00

In a new post to the Web Tech blog over on SitePoint, Toby Somerville has posted something he calls "RoughTime" - his method for displaying a more "human friendly" output of a timestamp.

When asked the time, we generally don't need to be military accurate with our response [...] we generally communicate the approximate time. i.e. 'its nearly ten' or 'its just gone half past three'. Yet on the web, time is generally shown as '12:24:13 AM', or similar '" not very visitor friendly.

His RoughTime uses two switch statements to map the hour and minute values to different strings. For example, minutes between 15 and 20 become "quarter past" and the hours are changed over from numeric versions to their word counterparts.

0 comments voice your opinion now!
roughtime switch approximate time hour minute translate


Derick Rethans' Blog:
php|tek conference
January 16, 2006 @ 06:44:32

Derick Rethans has this new note on his blog about the fact that he will be presenting at the php|tek conference in Orlando this coming April (26th-28th).

From April 26th to 28th I will presenting at php|tek in Orlando. On this third "cruise" I will hold three sessions. In the first talk I will be talking about rapid application developing, using examples from the eZ components. On the second day I'm trying something new: "Derick's Ranting Hour". During this hour I will be listening to the ranting of users about all things they don't like in PHP. If there are not enough people complaining than I will give a shot at it myself :). On the third and last day I will be talking about PHP's improved date and time handling.

You can get more details on other speakers and the wheres and whens of the conference from it page on the php|architect site...

0 comments voice your opinion now!
php|tek conference ez components ranting hour date time php|tek conference ez components ranting hour date time



Community Events





Don't see your event here?
Let us know!


community framework deployment package bugfix opinion symfony language voicesoftheelephpant zendserver introduction library interview podcast release unittest laravel series install api

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework