New date stuff: am I doing something wrong?

David Bovill david at openpartnership.net
Fri May 18 07:20:33 EDT 2007


Ah - so that definitely is a bug :) Should be american date no? So there is
no way of taking a date in english - lets say Scottish format and converting
it as we cannot assume the user settings... ok so I guess I have to script
it. Funny I thought those yanks would of objected to being called english :)

On 18/05/07, Mark Smith <mark at maseurope.net> wrote:
>
> David, are you sure you've understood what "english" denotes in
> Revolution?
> From the docs:
>
> english
> Used with the date and time functions to specify a date or time in
> the format used in the United States.
>
> So "20/4/02" is not an english date....
>
> Best,
>
> Mark
>
> On 18 May 2007, at 09:17, David Bovill wrote:
>
> > I have been testing/working with the new date fixes in 2.8.1 and
> > have a
> > problem with english dates - which I cannot convert properly:
> >
> >            put "20/4/02" into testDate
> >            -- convert testDate from english date to dateItems
> >            convert testDate from short english date to dateItems
> >            put testDate
> >
> >            put "20/4/02" into testDate
> >            -- convert testDate from system date to dateItems
> >            convert testDate from short english date to dateItems
> >            put testDate
> >
> >            put "6/4/02" into testDate
> >            -- convert testDate from english date to dateItems
> >            convert testDate from short english date to dateItems
> >            put testDate
> >
> >            put "6/4/02" into testDate
> >            convert testDate from english date to seconds
> >            convert testDate to dateItems
> >            put testDate
> >            break
> >
> > Is this a bug I should file? Either way how can convert the english
> > dates
> > back - do I have to manually change the order of the items myself in a
> > script?
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list