In this case, I am lucky that the date itself is not important. I just needed the default, but the time needed to be 9am.
it's better than my solution. --- On Thu, 1/17/13, Mike Schrag <[email protected]> wrote: > From: Mike Schrag <[email protected]> > Subject: Re: best way to create date/time > To: "Hugi Thordarson" <[email protected]> > Cc: "Theodore Petrosky" <[email protected]>, "WebObjects Development" > <[email protected]> > Date: Thursday, January 17, 2013, 10:02 AM > pretty sure this would break (off by > one) on the day that DST changes over > > ms > > On Jan 17, 2013, at 9:58 AM, Hugi Thordarson <[email protected]> > wrote: > > > One way to do it: > > > > > ERXTimestampUtilities.today().timestampByAddingGregorianUnits( > 0, 0, 0, 9, 0, 0 ) > > > > - hugi > > > > // Hugi Thordarson > > // http://www.godurkodi.is/ > > > > > > > > On 17.1.2013, at 14:48, Theodore Petrosky <[email protected]> > wrote: > > > >> What is the best way to create today's day at 9:00 > >> > >> new NSTimestamp() will give me today and the time > is at the moment of creation. so the end result I want is > (regardless of when in the day I create it): > >> > >> new Timestamp(today at 9am); > >> 2013-01-17 09:00 Etc/GMT > >> > >> I am doing it rather convolutedly. Maybe there is a > simple WO way. > >> > >> Ted > >> _______________________________________________ > >> Do not post admin requests to the list. They will > be ignored. > >> Webobjects-dev mailing list ([email protected]) > >> Help/Unsubscribe/Update your Subscription: > >> https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is > >> > >> This email sent to [email protected] > > > > > > _______________________________________________ > > Do not post admin requests to the list. They will be > ignored. > > Webobjects-dev mailing list ([email protected]) > > Help/Unsubscribe/Update your Subscription: > > https://lists.apple.com/mailman/options/webobjects-dev/mschrag%40pobox.com > > > > This email sent to [email protected] > > _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
