Re: NSTimestamp or System Timestamp?
Re: NSTimestamp or System Timestamp?
- Subject: Re: NSTimestamp or System Timestamp?
- From: Seejo Pylappan <email@hidden>
- Date: Fri, 24 Jan 2003 06:27:53 -0500
On Thursday, January 23, 2003, at 03:23 PM, Jonathan Fleming wrote:
This is probably not a direct WebObjects question, but more a Java one
I imagine... Is it possible to write code that so that I can greet a
'USER' in their administration area with "Good morning 'USER'" if the
time is between 00:00 & 11:59, "Good afternoon 'USER'" if the time is
between 12:00 & 17:59, "good evening 'USER'" if the time is between
18:00 & 23:59
I would appreciate a code example if any one knows how to do this.
Look at the documentation for GregorianCalendar inside java.util
package. That is more suited for you. There is an example there which
prints out the time information. You can put if statements around it
and get what you want
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.