Re: formatting time
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: formatting time

From: Geoff Berrow <blthecat@ckdog.co.uk>
Date: Sat Apr 29 2006 - 02:01:31 CEST

Message-ID: <1146265149.790751.138630@v46g2000cwv.googlegroups.com> from
Mark contained the following:

>well, the whole idea is to make as easy as possible for the user. i
>find having two drop downs is just annoying. anyways, I'll try using
>strtotime. it doesn't have to be perfect.. hopefully it'll catch most
>cases.

You could just use two text boxes, one for hours, one for minutes and
then check that the contents were integers using intval()

-- 
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Received on Mon May 1 03:07:09 2006