...and if I read Joe's msg first I would've saved myself the trouble... :-(
thx all,
p.
On 9/1/06, Peter K. Stys <[EMAIL PROTECTED]> wrote:
Thx Norman, that's useful. I figure out how this works:
d = new date sets d.GMToffset to the current system's offset (I was
wondering how to get this number automatically).
timeOffset = d.GMToffset ' save the current time offset
d.GMTOffset = 0 ' set to 0 because you get true GMT time in the next line
d.SQLDateTime = theMDitem.getAttributeValue("kMDItemContentCreationDate")
d.GMTOffset = timeOffset ' reset the current location's GMToffset for display
Peter.
On 9/1/06, Norman Palardy <[EMAIL PROTECTED]> wrote:
>
> On Sep 01, 2006, at 11:13 AM, Peter K. Stys wrote:
>
> > My spotlight client retrieves file mod dates and times, but these are
> > in GMT (I assume). Is there a simple call that will convert a GMT
> > date/time (e.g. 2006-09-01 17:02:02) to a Mac's local date/time for
> > display, allowing for daylight savings, etc?
>
> What version of RB are you using ?
>
> 2006 added a GMT offset to the Date class which you can adjust and
> the date adjusts accordingly
>
> On older versions you have to do this for yourself
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>
>
--
-------------------------------------------------------------------------------
Peter K. Stys, MD
Professor of Medicine(Neurology), Senior Scientist
Ottawa Health Research Institute, Div. of Neuroscience
Ottawa Hospital / University of Ottawa
Ontario, CANADA
tel: (613)761-5444
fax: (613)761-5330
http://www.ohri.ca/profiles/stys.asp
-------------------------------------------------------------------------------
--
-------------------------------------------------------------------------------
Peter K. Stys, MD
Professor of Medicine(Neurology), Senior Scientist
Ottawa Health Research Institute, Div. of Neuroscience
Ottawa Hospital / University of Ottawa
Ontario, CANADA
tel: (613)761-5444
fax: (613)761-5330
http://www.ohri.ca/profiles/stys.asp
-------------------------------------------------------------------------------
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>