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
Mar 06, 2008 @ 14: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.

tagged: roughtime switch approximate time hour minute translate

Link:

Derick Rethans' Blog:
php|tek conference
Jan 16, 2006 @ 12: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...

tagged: php|tek conference ez components ranting hour date time php|tek conference ez components ranting hour date time

Link:

Derick Rethans' Blog:
php|tek conference
Jan 16, 2006 @ 12: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...

tagged: php|tek conference ez components ranting hour date time php|tek conference ez components ranting hour date time

Link:


Trending Topics: