[Spam Low] [UPHPU] Handling Datetimes (Calendars and Clocks)
Brent Wilkinson
brent at air2data.com
Fri Sep 3 13:49:11 MDT 2004
Fairly easy on this one.
$newtime=Date("h:i:s A",mktime($seconds,$minutes,$hours,$month,$day,$year);
That line will convert 23:12:12 to 11:12:12 PM. You can put 0's in the
month,day, and year spots if you don't care about them.
Brent Wilkinson
Tech Manager
Air2Data
(866)-779-8585
(801)-510-7474
-----Original Message-----
From: Jeremy Burgess [mailto:edgecast at gmail.com]
Sent: Friday, September 03, 2004 1:21 PM
To: list at uphpu.org
Subject: [Spam Low] [UPHPU] Handling Datetimes (Calendars and Clocks)
Guys, Thanks for the dialog on calendar scripts. I put the script from
mattkruse.com [1] to work on my site. I needed something just like it and
had not found the time to look around yet. It was easy to implement and
works slick.
I have a similar challenge to toss out to the group. I'm storing datetimes
in MySQL to indicate when an item is open or expired. On the UI I have a
textbox for the date portion and another for the time portion. I split them
apart on display and join them on processing.
Dates are dates and the calendar script has enhanced the UI greatly.
The time portion is not as nice to work with for me or the users. It's been
on my list of things to address for a while now. For the users I'd like to
make it as easy to select a time as it now is to select a date. For me, I
need a better way to handle the conversion of 24Hr format in MySQL to 12Hr
format for the UI.
Any takers? Anyone know of a simple clock script for time selection?
How 'bout a slick way to display and process times with the 12 vs. 24 hr
format?
[1] http://www.mattkruse.com/javascript/calendarpopup/index.html
--
Jeremy Burgess
801.580.6625
jeremy at edgecast.net
http://www.edgecast.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: list-unsubscribe at uphpu.org
For additional commands, e-mail: list-help at uphpu.org
More information about the UPHPU
mailing list