Re: [ot] Time format and time picking?

2003-10-11 Thread Adam Hardy
I would definitely use a javascript utility if it's allowed in the spec. 
Adds to user friendliness and saves a bit of validation hassle with 
locales / 12 or 24 hour clock etc.

On the server side you should be able to set up a parser with a standard 
date/time pattern string that fits the javascript output.

Adam

On 10/10/2003 07:08 PM James Mitchell wrote:
I don't recall any handy dandy utilities for time.  Sure, there are plenty
for dates, but I don't seem to recall that being requested very often or I
just have missed it since it hasn't been a requirement in any of my latest
projects.
--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
770.822.3359
AIM:jmitchtx


- Original Message - 
From: Mick Knutson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 10, 2003 12:55 PM
Subject: Re: [ot] Time format and time picking?



No, I understand how to get the time correct, I am just hoping someone has
a

utility that will help me do this, as well as convert it back to 12 hour
formatted time. Just so I don't have to re-invent the wheel.
---
Thanks
Mick Knutson
The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.
+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480
---

- Original Message - 
From: James Mitchell [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 10, 2003 9:38 AM
Subject: Re: [ot] Time format and time picking?



Add 12 to the hour.

8:30 AM ==  830
8:30 PM == 2030
1:00 PM == 1300
...is that what you wanted?

--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
770.822.3359
AIM:jmitchtx


- Original Message - 
From: Mick Knutson [EMAIL PROTECTED]
To: struts [EMAIL PROTECTED]
Sent: Friday, October 10, 2003 11:59 AM
Subject: [ot] Time format and time picking?



I need the ability to have a user choose their own Time. But, I can
only

seem to get 24 hour time to work. So, Either I need to find a
JavaScript

Time Chooser, or I need help to figure out how to convert the time
(8:56PM)

to the Military time.

Any help on this?

---
Thanks
Mick Knutson


--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[ot] Time format and time picking?

2003-10-10 Thread Mick Knutson
I need the ability to have a user choose their own Time. But, I can only
seem to get 24 hour time to work. So, Either I need to find a JavaScript
Time Chooser, or I need help to figure out how to convert the time (8:56PM)
to the Military time.

Any help on this?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ot] Time format and time picking?

2003-10-10 Thread Mick Knutson
No, I understand how to get the time correct, I am just hoping someone has a
utility that will help me do this, as well as convert it back to 12 hour
formatted time. Just so I don't have to re-invent the wheel.


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
Contact System can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

- Original Message - 
From: James Mitchell [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 10, 2003 9:38 AM
Subject: Re: [ot] Time format and time picking?


 Add 12 to the hour.

 8:30 AM ==  830
 8:30 PM == 2030
 1:00 PM == 1300

 ...is that what you wanted?

 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017
 770.822.3359
 AIM:jmitchtx



 - Original Message - 
 From: Mick Knutson [EMAIL PROTECTED]
 To: struts [EMAIL PROTECTED]
 Sent: Friday, October 10, 2003 11:59 AM
 Subject: [ot] Time format and time picking?


  I need the ability to have a user choose their own Time. But, I can only
  seem to get 24 hour time to work. So, Either I need to find a JavaScript
  Time Chooser, or I need help to figure out how to convert the time
 (8:56PM)
  to the Military time.
 
  Any help on this?
 
 
  ---
  Thanks
  Mick Knutson
 
  The world is a playground...Play Hard, Play Smart.
  Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert

  Contact System can help you Play Smart.
 
  +00 1 (708) 570-2772 Fax
  MSN: mickknutson
  ICQ: 316498480
  ICQ URL: http://wwp.icq.com/316498480
 
  ---
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ot] Time format and time picking?

2003-10-10 Thread James Mitchell
I don't recall any handy dandy utilities for time.  Sure, there are plenty
for dates, but I don't seem to recall that being requested very often or I
just have missed it since it hasn't been a requirement in any of my latest
projects.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
770.822.3359
AIM:jmitchtx



- Original Message - 
From: Mick Knutson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 10, 2003 12:55 PM
Subject: Re: [ot] Time format and time picking?


 No, I understand how to get the time correct, I am just hoping someone has
a
 utility that will help me do this, as well as convert it back to 12 hour
 formatted time. Just so I don't have to re-invent the wheel.


 ---
 Thanks
 Mick Knutson

 The world is a playground...Play Hard, Play Smart.
 Visit  http://www.YourSoS.com to learn how our Personal Emergency Alert 
 Contact System can help you Play Smart.

 +00 1 (708) 570-2772 Fax
 MSN: mickknutson
 ICQ: 316498480
 ICQ URL: http://wwp.icq.com/316498480

 ---

 - Original Message - 
 From: James Mitchell [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, October 10, 2003 9:38 AM
 Subject: Re: [ot] Time format and time picking?


  Add 12 to the hour.
 
  8:30 AM ==  830
  8:30 PM == 2030
  1:00 PM == 1300
 
  ...is that what you wanted?
 
  --
  James Mitchell
  Software Engineer / Struts Evangelist
  http://www.struts-atlanta.org
  678.910.8017
  770.822.3359
  AIM:jmitchtx
 
 
 
  - Original Message - 
  From: Mick Knutson [EMAIL PROTECTED]
  To: struts [EMAIL PROTECTED]
  Sent: Friday, October 10, 2003 11:59 AM
  Subject: [ot] Time format and time picking?
 
 
   I need the ability to have a user choose their own Time. But, I can
only
   seem to get 24 hour time to work. So, Either I need to find a
JavaScript
   Time Chooser, or I need help to figure out how to convert the time
  (8:56PM)
   to the Military time.
  
   Any help on this?
  
  
   ---
   Thanks
   Mick Knutson
  
   The world is a playground...Play Hard, Play Smart.
   Visit  http://www.YourSoS.com to learn how our Personal Emergency
Alert
 
   Contact System can help you Play Smart.
  
   +00 1 (708) 570-2772 Fax
   MSN: mickknutson
   ICQ: 316498480
   ICQ URL: http://wwp.icq.com/316498480
  
   ---
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [ot] Time format and time picking?

2003-10-10 Thread Paananen, Tero
 I don't recall any handy dandy utilities for time.  Sure, 
 there are plenty
 for dates, but I don't seem to recall that being requested 
 very often or I
 just have missed it since it hasn't been a requirement in any 
 of my latest
 projects.

Wouldn't a combination of java.util.Calendar
(for the calculations) and java.text.SimpleDateFormat
(for formatting) do the trick just fine?

-TPP

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]