• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTimestamp or System Timestamp?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSTimestamp or System Timestamp? (From: "Jonathan Fleming" <email@hidden>)

  • Prev by Date: Re: Webobjects deployed on Tomcat
  • Next by Date: Re: MySQL and WebObjects (II)
  • Previous by thread: NSTimestamp or System Timestamp?
  • Next by thread: MySQL and WebObjects (II)
  • Index(es):
    • Date
    • Thread