Re: best way to create date/time
Re: best way to create date/time
- Subject: Re: best way to create date/time
- From: Theodore Petrosky <email@hidden>
- Date: Thu, 17 Jan 2013 07:05:33 -0800 (PST)
I knew there was a WO way. this is beautiful. thanks.
Ted
--- On Thu, 1/17/13, Hugi Thordarson <email@hidden> wrote:
> From: Hugi Thordarson <email@hidden>
> Subject: Re: best way to create date/time
> To: "Theodore Petrosky" <email@hidden>
> Cc: "WebObjects Development" <email@hidden>
> Date: Thursday, January 17, 2013, 9:58 AM
> 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@hidden>
> 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@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden