Re: system date

2020-05-04 Thread matthias rebbe via use-livecode
Good to know that it´s working now.


-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 04.05.2020 um 21:36 schrieb Jacques Hausser via use-livecode 
> :
> 
> OK, I restarted the computer and now everything is OK. I probably 
> inadvertently did put a little gravel somewhere in the gears… thank you 
> Martin and Matthias and sorry for the inconvenience.
> 
> 
>> Le 4 mai 2020 à 20:55, Martin Koob via use-livecode 
>>  a écrit :
>> 
>> OK I opened the 'Language and Region' settings panel and clicked on the 
>> ‘Advanced’ button and then clicked on the Tab for ‘Dates’
>> 
>> There is a field with a setting for “Short”  which was 2020-01-05.  I 
>> replaced the hyphens with slashes.
>> 
>> I had to quit and relaunch LiveCode for the change to take effect.  After I 
>> had done that the command 'put the system date’ returns '2020/05/04’
>> 
>> If I click 'Restore Defaults' in the ‘Dates' tab of the advanced 'Language 
>> and Region' settings panel my short date format goes back to 2020-05-04.
>> 
>> Martin
>> 
>> 
>> 
>> 
>>> On May 4, 2020, at 2:43 PM, Martin Koob via use-livecode 
>>>  wrote:
>>> 
>>> Huh,  I get 2020-05-04 here in Canada.  Not sure what my region settings 
>>> are.
>>> 
>>> 
>>> Regards,
>>> 
>>> Martin Koob
>>> 
>>> 
>>> 
>>> 
>>> 
>>>> On May 4, 2020, at 2:39 PM, Jacques Hausser via use-livecode 
>>>>  wrote:
>>>> 
>>>> My region settings are by default. But I would not be surprised if the 
>>>> problem comes from Apple.
>>>> 
>>>>> Le 4 mai 2020 à 20:21, matthias rebbe via use-livecode 
>>>>>  a écrit :
>>>>> 
>>>>> I tried here with DP4 on Mac OS 10.14.6.
>>>>> 
>>>>> I definitely get 04.05.20 when running your script.
>>>>> 
>>>>> Either this has to do with 10.15.4 or
>>>>> Are you sure your region settings are correct. ;)
>>>>> 
>>>>> Regards,
>>>>> 
>>>>> Matthias
>>>>> 
>>>>> 
>>>>> 
>>>>> -
>>>>> Matthias Rebbe
>>>>> Life Is Too Short For Boring Code
>>>>> 
>>>>>> Am 04.05.2020 um 20:07 schrieb Jacques Hausser via use-livecode 
>>>>>> :
>>>>>> 
>>>>>> Hello everybody,
>>>>>> 
>>>>>> Back to LC after a long time out. I’m using LC 9.6.0(dp 4) on Mac OS 
>>>>>> 10.15.4, and I just discovered that Livecode seems totally deaf to the 
>>>>>> words “system date”. EG:
>>>>>> 
>>>>>> put the date into today
>>>>>> convert today to system date
>>>>>> put today into fld 1
>>>>>> 
>>>>>> returns 5/4/20 instead of 04.05.20
>>>>>> 
>>>>>> Is "system date" deprecated? 
>>>>>> ___
>>>>>> use-livecode mailing list
>>>>>> use-livecode@lists.runrev.com
>>>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>>>> subscription preferences:
>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>>> 
>>>>> 
>>>>> ___
>>>>> use-livecode mailing list
>>>>> use-livecode@lists.runrev.com
>>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>>> subscription preferences:
>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: system date

2020-05-04 Thread Jacques Hausser via use-livecode
OK, I restarted the computer and now everything is OK. I probably inadvertently 
did put a little gravel somewhere in the gears… thank you Martin and Matthias 
and sorry for the inconvenience.


> Le 4 mai 2020 à 20:55, Martin Koob via use-livecode 
>  a écrit :
> 
> OK I opened the 'Language and Region' settings panel and clicked on the 
> ‘Advanced’ button and then clicked on the Tab for ‘Dates’
> 
> There is a field with a setting for “Short”  which was 2020-01-05.  I 
> replaced the hyphens with slashes.
> 
> I had to quit and relaunch LiveCode for the change to take effect.  After I 
> had done that the command 'put the system date’ returns '2020/05/04’
> 
> If I click 'Restore Defaults' in the ‘Dates' tab of the advanced 'Language 
> and Region' settings panel my short date format goes back to 2020-05-04.
> 
> Martin
> 
> 
> 
> 
>> On May 4, 2020, at 2:43 PM, Martin Koob via use-livecode 
>>  wrote:
>> 
>> Huh,  I get 2020-05-04 here in Canada.  Not sure what my region settings are.
>> 
>> 
>> Regards,
>> 
>> Martin Koob
>> 
>> 
>> 
>> 
>> 
>>> On May 4, 2020, at 2:39 PM, Jacques Hausser via use-livecode 
>>>  wrote:
>>> 
>>> My region settings are by default. But I would not be surprised if the 
>>> problem comes from Apple.
>>> 
>>>> Le 4 mai 2020 à 20:21, matthias rebbe via use-livecode 
>>>>  a écrit :
>>>> 
>>>> I tried here with DP4 on Mac OS 10.14.6.
>>>> 
>>>> I definitely get 04.05.20 when running your script.
>>>> 
>>>> Either this has to do with 10.15.4 or
>>>> Are you sure your region settings are correct. ;)
>>>> 
>>>> Regards,
>>>> 
>>>> Matthias
>>>> 
>>>> 
>>>> 
>>>> -
>>>> Matthias Rebbe
>>>> Life Is Too Short For Boring Code
>>>> 
>>>>> Am 04.05.2020 um 20:07 schrieb Jacques Hausser via use-livecode 
>>>>> :
>>>>> 
>>>>> Hello everybody,
>>>>> 
>>>>> Back to LC after a long time out. I’m using LC 9.6.0(dp 4) on Mac OS 
>>>>> 10.15.4, and I just discovered that Livecode seems totally deaf to the 
>>>>> words “system date”. EG:
>>>>> 
>>>>> put the date into today
>>>>> convert today to system date
>>>>> put today into fld 1
>>>>> 
>>>>> returns 5/4/20 instead of 04.05.20
>>>>> 
>>>>> Is "system date" deprecated? 
>>>>> ___
>>>>> use-livecode mailing list
>>>>> use-livecode@lists.runrev.com
>>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>>> subscription preferences:
>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>> 
>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: system date

2020-05-04 Thread Martin Koob via use-livecode
OK I opened the 'Language and Region' settings panel and clicked on the 
‘Advanced’ button and then clicked on the Tab for ‘Dates’

There is a field with a setting for “Short”  which was 2020-01-05.  I replaced 
the hyphens with slashes.

I had to quit and relaunch LiveCode for the change to take effect.  After I had 
done that the command 'put the system date’ returns '2020/05/04’

If I click 'Restore Defaults' in the ‘Dates' tab of the advanced 'Language and 
Region' settings panel my short date format goes back to 2020-05-04.

Martin




> On May 4, 2020, at 2:43 PM, Martin Koob via use-livecode 
>  wrote:
> 
> Huh,  I get 2020-05-04 here in Canada.  Not sure what my region settings are.
> 
> 
> Regards,
> 
> Martin Koob
> 
> 
> 
> 
> 
>> On May 4, 2020, at 2:39 PM, Jacques Hausser via use-livecode 
>>  wrote:
>> 
>> My region settings are by default. But I would not be surprised if the 
>> problem comes from Apple.
>> 
>>> Le 4 mai 2020 à 20:21, matthias rebbe via use-livecode 
>>>  a écrit :
>>> 
>>> I tried here with DP4 on Mac OS 10.14.6.
>>> 
>>> I definitely get 04.05.20 when running your script.
>>> 
>>> Either this has to do with 10.15.4 or
>>> Are you sure your region settings are correct. ;)
>>> 
>>> Regards,
>>> 
>>> Matthias
>>> 
>>> 
>>> 
>>> -
>>> Matthias Rebbe
>>> Life Is Too Short For Boring Code
>>> 
>>>> Am 04.05.2020 um 20:07 schrieb Jacques Hausser via use-livecode 
>>>> :
>>>> 
>>>> Hello everybody,
>>>> 
>>>> Back to LC after a long time out. I’m using LC 9.6.0(dp 4) on Mac OS 
>>>> 10.15.4, and I just discovered that Livecode seems totally deaf to the 
>>>> words “system date”. EG:
>>>> 
>>>> put the date into today
>>>> convert today to system date
>>>> put today into fld 1
>>>> 
>>>> returns 5/4/20 instead of 04.05.20
>>>> 
>>>> Is "system date" deprecated? 
>>>> ___
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: system date

2020-05-04 Thread Martin Koob via use-livecode
Huh,  I get 2020-05-04 here in Canada.  Not sure what my region settings are.


Regards,

Martin Koob





> On May 4, 2020, at 2:39 PM, Jacques Hausser via use-livecode 
>  wrote:
> 
> My region settings are by default. But I would not be surprised if the 
> problem comes from Apple.
> 
>> Le 4 mai 2020 à 20:21, matthias rebbe via use-livecode 
>>  a écrit :
>> 
>> I tried here with DP4 on Mac OS 10.14.6.
>> 
>> I definitely get 04.05.20 when running your script.
>> 
>> Either this has to do with 10.15.4 or
>> Are you sure your region settings are correct. ;)
>> 
>> Regards,
>> 
>> Matthias
>> 
>> 
>> 
>> -
>> Matthias Rebbe
>> Life Is Too Short For Boring Code
>> 
>>> Am 04.05.2020 um 20:07 schrieb Jacques Hausser via use-livecode 
>>> :
>>> 
>>> Hello everybody,
>>> 
>>> Back to LC after a long time out. I’m using LC 9.6.0(dp 4) on Mac OS 
>>> 10.15.4, and I just discovered that Livecode seems totally deaf to the 
>>> words “system date”. EG:
>>> 
>>> put the date into today
>>> convert today to system date
>>> put today into fld 1
>>> 
>>> returns 5/4/20 instead of 04.05.20
>>> 
>>> Is "system date" deprecated? 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: system date

2020-05-04 Thread Jacques Hausser via use-livecode
My region settings are by default. But I would not be surprised if the problem 
comes from Apple.

> Le 4 mai 2020 à 20:21, matthias rebbe via use-livecode 
>  a écrit :
> 
> I tried here with DP4 on Mac OS 10.14.6.
> 
> I definitely get 04.05.20 when running your script.
> 
> Either this has to do with 10.15.4 or
> Are you sure your region settings are correct. ;)
> 
> Regards,
> 
> Matthias
> 
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 04.05.2020 um 20:07 schrieb Jacques Hausser via use-livecode 
>> :
>> 
>> Hello everybody,
>> 
>> Back to LC after a long time out. I’m using LC 9.6.0(dp 4) on Mac OS 
>> 10.15.4, and I just discovered that Livecode seems totally deaf to the words 
>> “system date”. EG:
>> 
>> put the date into today
>> convert today to system date
>> put today into fld 1
>> 
>> returns 5/4/20 instead of 04.05.20
>> 
>> Is "system date" deprecated? 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: system date

2020-05-04 Thread matthias rebbe via use-livecode
I tried here with DP4 on Mac OS 10.14.6.

I definitely get 04.05.20 when running your script.

Either this has to do with 10.15.4 or
Are you sure your region settings are correct. ;)

Regards,

Matthias



-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 04.05.2020 um 20:07 schrieb Jacques Hausser via use-livecode 
> :
> 
> Hello everybody,
> 
> Back to LC after a long time out. I’m using LC 9.6.0(dp 4) on Mac OS 10.15.4, 
> and I just discovered that Livecode seems totally deaf to the words “system 
> date”. EG:
> 
> put the date into today
> convert today to system date
> put today into fld 1
> 
> returns 5/4/20 instead of 04.05.20
> 
> Is "system date" deprecated? 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


system date

2020-05-04 Thread Jacques Hausser via use-livecode
Hello everybody,

Back to LC after a long time out. I’m using LC 9.6.0(dp 4) on Mac OS 10.15.4, 
and I just discovered that Livecode seems totally deaf to the words “system 
date”. EG:

put the date into today
convert today to system date
put today into fld 1

returns 5/4/20 instead of 04.05.20

Is "system date" deprecated? 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


system date also works with the long system date?

2018-10-31 Thread Klaus major-k via use-livecode
Hi friends,

quick question, see subject, just to be sure.
Maybe someone can confirm this.


Problem, LC on ANDROID still does not support the system date,
so sorting by date in a datagrid does not work for non-english dates.

This just one of the inconveniences resulting from this missing feature

Who also thinks this SHOULD work on Android (4 years after the confirmed 
report), 
please consider to add comment here: 
<https://quality.livecode.com/show_bug.cgi?id=11726>


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System date

2016-09-08 Thread Antti Ilola
Checked.

2016-09-07 15:47 GMT+03:00 Robert Brenstein :

> The problem might be that changing the language does not always change the
> date formats. These are separate settings under OSX.
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System date

2016-09-07 Thread Robert Brenstein
The problem might be that changing the language does not always 
change the date formats. These are separate settings under OSX.


On 7.09.2016 08:20, Terry Judd wrote:
Hi Antti - I just tried changing my Mac's default language to 
Finnish (Suomi) then restarted it, opened Livecode (several versions 
up to 8.0.2) and typed "put the long system date" into the message 
box. All returned an English style date (Wednesday, 7 September 
2016) even though the date in the menubar clock was in Finnish. So, 
it's not just you.


Best regards,

Terry...



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System date

2016-09-07 Thread Richmond

It might just be that Livecode only parses certain countries . . .

Why do I think only these languages will work:

English
Arabic
Bulgarian
Chinese
Greek
Hebrew
Japanese
Korean
Polish
Roman
Russian
Thai
Turkish
SimpleChinese
Ukrainian

What we should really do is ask Mark Schonewille to try on a computer 
with a Netherlandish system.


Richmond.

On 7.09.2016 08:20, Terry Judd wrote:

Hi Antti – I just tried changing my Mac’s default language to Finnish (Suomi) 
then restarted it, opened Livecode (several versions up to 8.0.2) and typed 
“put the long system date” into the message box. All returned an English style 
date (Wednesday, 7 September 2016) even though the date in the menubar clock 
was in Finnish. So, it’s not just you.

Best regards,

Terry...

Terry Judd  | Senior Lecturer in Medical Education
Department of Medical Education 
<http://medicine.unimelb.edu.au/medical-education>
The University of Melbourne <http://www.unimelb.edu.au>
M: 0435 961 594  |  E: terry.j...@unimelb.edu.au <mailto:t...@unimelb.edu.au>
Publications <https://scholar.google.com.au/citations?user=XC5s6wwJ&hl=en>



On 7/09/2016 3:02 pm, "use-livecode on behalf of Antti Ilola" 
 wrote:

 Then maybe I have problems on my machines( MacBook Pro 2007 and iMac 2010),
 because I have used different version of MacOs's  and different versions of
 Livecode and both of your scripts and the answer is all the same - english
 date. My computers primary language is Finnish.
 
 Regards

 Antti
 
 2016-09-06 21:36 GMT+03:00 Richmond :
 
 > You should have taken a bit longer to read the documention, this:

 >
 > on mouseUp
 >set the useSystemDate to true
 >put the long date into fld "fDATE"
 > end mouseUp
 >
 > returned this:
 >
 > вторник, септември 6, 2016
 >
 > as I am using a machine running Xubuntu 16.04 64-bit with the system date
 > system running
 > in Bulgarian - mainly because I live and work on Bulgaria.
 >
 > Richmond.
 >
     >
 > On 6.09.2016 20:21, Antti Ilola wrote:
 >
 >> Is it the time to you to get the system date work.I have done 
everything I
 >> found your guide, but no avail, every time english date. I made it a bug
 >> report since version 6 was announced. and still it doesn't work. Now I'm
 >> using Mac OS 10.10 and 10.11 in Finnish. Today I tired SperCard for fun
 >> and
 >> even it I got finnish date without any larger measures, just "answer the
 >> date" and that's it. And it is not the only software which understands 
the
 >> finnish date, for example Xcode and Xojo knows how it should be display.
 >> You made many wondrous things into your software, but simple as date 
won't
 >> work. I think there are many people in this world who use different date
 >> form than english.
 >>
 >> Antti
 >> ___
 >> use-livecode mailing list
 >> use-livecode@lists.runrev.com
 >> Please visit this url to subscribe, unsubscribe and manage your
 >> subscription preferences:
 >> http://lists.runrev.com/mailman/listinfo/use-livecode
 >>
 >
 >
 > ___
 > use-livecode mailing list
 > use-livecode@lists.runrev.com
 > Please visit this url to subscribe, unsubscribe and manage your
 > subscription preferences:
 > http://lists.runrev.com/mailman/listinfo/use-livecode
 >
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: System date

2016-09-07 Thread Ali Lloyd
This is a problem we have with any language that uses the 'c' format
specifier for date format - i.e. stand alone day of week (see here for
example:
http://cldr.unicode.org/translation/date-time#TOC-Stand-Alone-vs.-Format-Styles
)

There is a bug report already here:
http://quality.livecode.com/show_bug.cgi?id=11633

On Wed, Sep 7, 2016 at 6:23 AM Terry Judd  wrote:

> So, with respect to my previous message, what I actually tried in the
> message box was...
>
> set the useSystemDate to true; put the long system date
>
> ...but it still returned an English style date.
>
> Terry...
>
>
> On 7/09/2016 3:17 pm, "use-livecode on behalf of Tim Selander" <
> use-livecode-boun...@lists.runrev.com on behalf of selan...@tkf.att.ne.jp>
> wrote:
>
> This thread has been instructive, as I've had the same grief as Antti.
> I've been using dateItems for all my date stuff, and reconstructing my
> own Japanese dates.
>
> However, I didn't know about the useSystemDate command. It's working
> great here. Mac OS10.11.5, system running in Japanese, LC 8.0.2
> community edition.
>
> This info doesn't help Antti much, though sorry. But thanks for
> asking the question!
>
> Tim Selander
> Tokyo, Japan
>
> On 2016/09/07 14:02, Antti Ilola wrote:
> > Then maybe I have problems on my machines( MacBook Pro 2007 and iMac
> 2010),
> > because I have used different version of MacOs's  and different
> versions of
> > Livecode and both of your scripts and the answer is all the same -
> english
> > date. My computers primary language is Finnish.
> >
> > Regards
> > Antti
> >
> > 2016-09-06 21:36 GMT+03:00 Richmond :
> >
> >> You should have taken a bit longer to read the documention, this:
> >>
> >> on mouseUp
> >> set the useSystemDate to true
> >> put the long date into fld "fDATE"
> >> end mouseUp
> >>
> >> returned this:
> >>
> >> вторник, септември 6, 2016
> >>
> >> as I am using a machine running Xubuntu 16.04 64-bit with the
> system date
> >> system running
> >> in Bulgarian - mainly because I live and work on Bulgaria.
> >>
> >> Richmond.
> >>
> >>
> >> On 6.09.2016 20:21, Antti Ilola wrote:
> >>
> >>> Is it the time to you to get the system date work.I have done
> everything I
> >>> found your guide, but no avail, every time english date. I made it
> a bug
> >>> report since version 6 was announced. and still it doesn't work.
> Now I'm
> >>> using Mac OS 10.10 and 10.11 in Finnish. Today I tired SperCard
> for fun
> >>> and
> >>> even it I got finnish date without any larger measures, just
> "answer the
> >>> date" and that's it. And it is not the only software which
> understands the
> >>> finnish date, for example Xcode and Xojo knows how it should be
> display.
> >>> You made many wondrous things into your software, but simple as
> date won't
> >>> work. I think there are many people in this world who use
> different date
> >>> form than english.
> >>>
> >>> Antti
> >>> ___
> >>> use-livecode mailing list
> >>> use-livecode@lists.runrev.com
> >>> Please visit this url to subscribe, unsubscribe and manage your
> >>> subscription preferences:
> >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>>
> >>
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: System date

2016-09-06 Thread Terry Judd
So, with respect to my previous message, what I actually tried in the message 
box was...

set the useSystemDate to true; put the long system date

...but it still returned an English style date.

Terry...


On 7/09/2016 3:17 pm, "use-livecode on behalf of Tim Selander" 
 
wrote:

This thread has been instructive, as I've had the same grief as Antti. 
I've been using dateItems for all my date stuff, and reconstructing my 
own Japanese dates.

However, I didn't know about the useSystemDate command. It's working 
great here. Mac OS10.11.5, system running in Japanese, LC 8.0.2 
community edition.

This info doesn't help Antti much, though sorry. But thanks for 
asking the question!

Tim Selander
Tokyo, Japan

On 2016/09/07 14:02, Antti Ilola wrote:
> Then maybe I have problems on my machines( MacBook Pro 2007 and iMac 
2010),
> because I have used different version of MacOs's  and different versions 
of
> Livecode and both of your scripts and the answer is all the same - english
> date. My computers primary language is Finnish.
>
> Regards
> Antti
>
> 2016-09-06 21:36 GMT+03:00 Richmond :
>
>> You should have taken a bit longer to read the documention, this:
>>
>> on mouseUp
>> set the useSystemDate to true
>> put the long date into fld "fDATE"
>> end mouseUp
>>
>> returned this:
>>
>> вторник, септември 6, 2016
>>
>> as I am using a machine running Xubuntu 16.04 64-bit with the system date
>> system running
>> in Bulgarian - mainly because I live and work on Bulgaria.
>>
>> Richmond.
>>
>>
>> On 6.09.2016 20:21, Antti Ilola wrote:
>>
>>> Is it the time to you to get the system date work.I have done 
everything I
>>> found your guide, but no avail, every time english date. I made it a bug
>>> report since version 6 was announced. and still it doesn't work. Now I'm
>>> using Mac OS 10.10 and 10.11 in Finnish. Today I tired SperCard for fun
>>> and
>>> even it I got finnish date without any larger measures, just "answer the
>>> date" and that's it. And it is not the only software which understands 
the
>>> finnish date, for example Xcode and Xojo knows how it should be display.
>>> You made many wondrous things into your software, but simple as date 
won't
>>> work. I think there are many people in this world who use different date
>>> form than english.
>>>
>>> Antti
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: System date

2016-09-06 Thread Terry Judd
Hi Antti – I just tried changing my Mac’s default language to Finnish (Suomi) 
then restarted it, opened Livecode (several versions up to 8.0.2) and typed 
“put the long system date” into the message box. All returned an English style 
date (Wednesday, 7 September 2016) even though the date in the menubar clock 
was in Finnish. So, it’s not just you.

Best regards,

Terry...

Terry Judd  | Senior Lecturer in Medical Education
Department of Medical Education 
<http://medicine.unimelb.edu.au/medical-education>
The University of Melbourne <http://www.unimelb.edu.au>
M: 0435 961 594  |  E: terry.j...@unimelb.edu.au <mailto:t...@unimelb.edu.au>
Publications <https://scholar.google.com.au/citations?user=XC5s6wwJ&hl=en>



On 7/09/2016 3:02 pm, "use-livecode on behalf of Antti Ilola" 
 
wrote:

Then maybe I have problems on my machines( MacBook Pro 2007 and iMac 2010),
because I have used different version of MacOs's  and different versions of
Livecode and both of your scripts and the answer is all the same - english
date. My computers primary language is Finnish.

Regards
Antti

2016-09-06 21:36 GMT+03:00 Richmond :

> You should have taken a bit longer to read the documention, this:
>
> on mouseUp
>set the useSystemDate to true
>put the long date into fld "fDATE"
> end mouseUp
>
> returned this:
>
> вторник, септември 6, 2016
    >
> as I am using a machine running Xubuntu 16.04 64-bit with the system date
> system running
> in Bulgarian - mainly because I live and work on Bulgaria.
>
> Richmond.
    >
>
> On 6.09.2016 20:21, Antti Ilola wrote:
>
>> Is it the time to you to get the system date work.I have done everything 
I
>> found your guide, but no avail, every time english date. I made it a bug
>> report since version 6 was announced. and still it doesn't work. Now I'm
>> using Mac OS 10.10 and 10.11 in Finnish. Today I tired SperCard for fun
>> and
>> even it I got finnish date without any larger measures, just "answer the
>> date" and that's it. And it is not the only software which understands 
the
>> finnish date, for example Xcode and Xojo knows how it should be display.
>> You made many wondrous things into your software, but simple as date 
won't
>> work. I think there are many people in this world who use different date
>> form than english.
>>
>> Antti
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: System date

2016-09-06 Thread Tim Selander
This thread has been instructive, as I've had the same grief as Antti. 
I've been using dateItems for all my date stuff, and reconstructing my 
own Japanese dates.


However, I didn't know about the useSystemDate command. It's working 
great here. Mac OS10.11.5, system running in Japanese, LC 8.0.2 
community edition.


This info doesn't help Antti much, though sorry. But thanks for 
asking the question!


Tim Selander
Tokyo, Japan

On 2016/09/07 14:02, Antti Ilola wrote:

Then maybe I have problems on my machines( MacBook Pro 2007 and iMac 2010),
because I have used different version of MacOs's  and different versions of
Livecode and both of your scripts and the answer is all the same - english
date. My computers primary language is Finnish.

Regards
Antti

2016-09-06 21:36 GMT+03:00 Richmond :


You should have taken a bit longer to read the documention, this:

on mouseUp
set the useSystemDate to true
put the long date into fld "fDATE"
end mouseUp

returned this:

вторник, септември 6, 2016

as I am using a machine running Xubuntu 16.04 64-bit with the system date
system running
in Bulgarian - mainly because I live and work on Bulgaria.

Richmond.


On 6.09.2016 20:21, Antti Ilola wrote:


Is it the time to you to get the system date work.I have done everything I
found your guide, but no avail, every time english date. I made it a bug
report since version 6 was announced. and still it doesn't work. Now I'm
using Mac OS 10.10 and 10.11 in Finnish. Today I tired SperCard for fun
and
even it I got finnish date without any larger measures, just "answer the
date" and that's it. And it is not the only software which understands the
finnish date, for example Xcode and Xojo knows how it should be display.
You made many wondrous things into your software, but simple as date won't
work. I think there are many people in this world who use different date
form than english.

Antti
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: System date

2016-09-06 Thread Antti Ilola
Then maybe I have problems on my machines( MacBook Pro 2007 and iMac 2010),
because I have used different version of MacOs's  and different versions of
Livecode and both of your scripts and the answer is all the same - english
date. My computers primary language is Finnish.

Regards
Antti

2016-09-06 21:36 GMT+03:00 Richmond :

> You should have taken a bit longer to read the documention, this:
>
> on mouseUp
>set the useSystemDate to true
>put the long date into fld "fDATE"
> end mouseUp
>
> returned this:
>
> вторник, септември 6, 2016
>
> as I am using a machine running Xubuntu 16.04 64-bit with the system date
> system running
> in Bulgarian - mainly because I live and work on Bulgaria.
>
> Richmond.
>
>
> On 6.09.2016 20:21, Antti Ilola wrote:
>
>> Is it the time to you to get the system date work.I have done everything I
>> found your guide, but no avail, every time english date. I made it a bug
>> report since version 6 was announced. and still it doesn't work. Now I'm
>> using Mac OS 10.10 and 10.11 in Finnish. Today I tired SperCard for fun
>> and
>> even it I got finnish date without any larger measures, just "answer the
>> date" and that's it. And it is not the only software which understands the
>> finnish date, for example Xcode and Xojo knows how it should be display.
>> You made many wondrous things into your software, but simple as date won't
>> work. I think there are many people in this world who use different date
>> form than english.
>>
>> Antti
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: System date

2016-09-06 Thread Richmond

You should have taken a bit longer to read the documention, this:

on mouseUp
   set the useSystemDate to true
   put the long date into fld "fDATE"
end mouseUp

returned this:

вторник, септември 6, 2016

as I am using a machine running Xubuntu 16.04 64-bit with the system 
date system running

in Bulgarian - mainly because I live and work on Bulgaria.

Richmond.

On 6.09.2016 20:21, Antti Ilola wrote:

Is it the time to you to get the system date work.I have done everything I
found your guide, but no avail, every time english date. I made it a bug
report since version 6 was announced. and still it doesn't work. Now I'm
using Mac OS 10.10 and 10.11 in Finnish. Today I tired SperCard for fun and
even it I got finnish date without any larger measures, just "answer the
date" and that's it. And it is not the only software which understands the
finnish date, for example Xcode and Xojo knows how it should be display.
You made many wondrous things into your software, but simple as date won't
work. I think there are many people in this world who use different date
form than english.

Antti
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: System date

2016-09-06 Thread Tore Nilsen
I have no problem using the system date here in Norway. It works when I use the 
following:

 answer the system date

and when I use:

set the useSystemDate to true
answer the date

In the last example, remember to set the useSystemDate to true every time you 
want to use the system date, as it resets to US date once the handler is 
finished.


Regards 
Tore

 
> 6. sep. 2016 kl. 19.21 skrev Antti Ilola :
> 
> Is it the time to you to get the system date work.I have done everything I
> found your guide, but no avail, every time english date. I made it a bug
> report since version 6 was announced. and still it doesn't work. Now I'm
> using Mac OS 10.10 and 10.11 in Finnish. Today I tired SperCard for fun and
> even it I got finnish date without any larger measures, just "answer the
> date" and that's it. And it is not the only software which understands the
> finnish date, for example Xcode and Xojo knows how it should be display.
> You made many wondrous things into your software, but simple as date won't
> work. I think there are many people in this world who use different date
> form than english.
> 
> Antti
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


System date

2016-09-06 Thread Antti Ilola
Is it the time to you to get the system date work.I have done everything I
found your guide, but no avail, every time english date. I made it a bug
report since version 6 was announced. and still it doesn't work. Now I'm
using Mac OS 10.10 and 10.11 in Finnish. Today I tired SperCard for fun and
even it I got finnish date without any larger measures, just "answer the
date" and that's it. And it is not the only software which understands the
finnish date, for example Xcode and Xojo knows how it should be display.
You made many wondrous things into your software, but simple as date won't
work. I think there are many people in this world who use different date
form than english.

Antti
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [Bug 9604] Various issues regarding compatibility between LC system date formats and OS X date preferences

2012-01-10 Thread Pete
Thanks Ken.  I responded to Michael on the qcc but probably not strongly
enough.  I didn't know a bug could be re-opned but I will do so.
Pete

On Mon, Jan 9, 2012 at 11:13 PM, Ken Ray  wrote:

>
> On Jan 5, 2012, at 2:41 PM, Pete wrote:
>
> > There was a discussion recently on preventing SQL injections in LC.
>  Here's
> > an email I got from the support center on a bug/enhancement concerning
> this.
>
> I've responded to this, Pete… Michael's comment is a bit misguided since
> the documentation even states that the format of the system date is based
> on the Date/Time control panel…
>
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: k...@sonsothunder.com
> Web Site: http://www.sonsothunder.com/
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>


-- 
Pete
Molly's Revenge <http://www.mollysrevenge.com>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [Bug 9604] Various issues regarding compatibility between LC system date formats and OS X date preferences

2012-01-09 Thread Ken Ray

On Jan 5, 2012, at 2:41 PM, Pete wrote:

> There was a discussion recently on preventing SQL injections in LC.  Here's
> an email I got from the support center on a bug/enhancement concerning this.

I've responded to this, Pete… Michael's comment is a bit misguided since the 
documentation even states that the format of the system date is based on the 
Date/Time control panel…

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/  

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Fwd: [Bug 9604] Various issues regarding compatibility between LC system date formats and OS X date preferences

2012-01-05 Thread Pete
There was a discussion recently on preventing SQL injections in LC.  Here's
an email I got from the support center on a bug/enhancement concerning this.

-- Forwarded message --
From: 
Date: Thu, Jan 5, 2012 at 9:00 AM
Subject: [Bug 9604] Various issues regarding compatibility between LC
system date formats and OS X date preferences
To: p...@mollysrevenge.com


http://quality.runrev.com/show_bug.cgi?id=9604


michael.mccre...@runrev.com changed:

  What|Removed |Added

Status|NEW |RESOLVED
Resolution||NOT_A_BUG




--- Comment #3 from michael.mccre...@runrev.com  2012-01-05 11:00
---
Hi Peter

I'm updating this to not a bug.

Rather than being tied to the current platform, LiveCode's date processing
is
system independent.  For example, the long date is the same on Windows as
it is
on OS X and Linux.  The system keyword is used by LiveCode to determine the
order in which the day month and year should be displayed rather than the
format to use. (As you've noted, OS X has 4 date formats.  This may not be
the
case with Linux and Windows, thus the system keyword can't be used to
provide
consistent platform specific dates).

Warm Regards

Michael


--
Configure bugmail: http://quality.runrev.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You reported the bug, or are watching the reporter.




-- 
Pete
Molly's Revenge <http://www.mollysrevenge.com>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System Date/Time Format Problems

2011-07-05 Thread Pete
Thanks Ken, I figured that's what it was.  I can send you the changed
handler if you're interested n the ordinal day and timezone (timezone will
only work on a Mac).

Pete
Molly's Revenge 




On Tue, Jul 5, 2011 at 6:03 PM, Ken Ray  wrote:

>
>
> > I notice there are less characters (26) in tReplaceChars than there are
> > items in tFormatWords (28) and the handler code suggests that there
> should
> > be the same number of characters. I'd like to add a couple more formats
> > (ordinal day number and 3-char time zone) and want to make sure I
> understand
> > the relationship between those two variables before changing anything.
>
> Good catch! You're right - that's a bug... there should be 28. I should
> probably come up with a better way of handling the replacement...
>
> For now, you can add a couple of characters to tReplaceChars and it should
> work...
>
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: k...@sonsothunder.com
> Web Site: http://www.sonsothunder.com/
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System Date/Time Format Problems

2011-07-05 Thread Ken Ray


> I notice there are less characters (26) in tReplaceChars than there are
> items in tFormatWords (28) and the handler code suggests that there should
> be the same number of characters. I'd like to add a couple more formats
> (ordinal day number and 3-char time zone) and want to make sure I understand
> the relationship between those two variables before changing anything.

Good catch! You're right - that's a bug... there should be 28. I should
probably come up with a better way of handling the replacement...

For now, you can add a couple of characters to tReplaceChars and it should
work...

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System Date/Time Format Problems

2011-07-05 Thread Pete
Ken,
Thanks for this.  I've been trying it out and all seems to work great.

I notice there are less characters (26) in tReplaceChars than there are
items in tFormatWords (28) and the handler code suggests that there should
be the same number of characters. I'd like to add a couple more formats
(ordinal day number and 3-char time zone) and want to make sure I understand
the relationship between those two variables before changing anything.

Thanks,

Pete
Molly's Revenge 




On Mon, Jul 4, 2011 at 6:24 AM, Ken Ray  wrote:

> I have a handler I've been using for a while that works great with
> formatting dates. Here it is (sorry for the length, but it's heavily
> commented - oh and watch for word wraps):
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System Date/Time Format Problems

2011-07-04 Thread Pete
Thanks a lot Ken, this looks great and I'll be trying it out very soon.  I
might add the ability to return the 3-char timezone since I just found out
how to get hold of that from OS X (it's in word -2 of the shell date
command)
Pete
Molly's Revenge 




On Mon, Jul 4, 2011 at 6:24 AM, Ken Ray  wrote:

> I have a handler I've been using for a while that works great with
> formatting dates. Here it is (sorry for the length, but it's heavily
> commented - oh and watch for word wraps):
>
>
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System Date/Time Format Problems

2011-07-04 Thread Ken Ray
I have a handler I've been using for a while that works great with
formatting dates. Here it is (sorry for the length, but it's heavily
commented - oh and watch for word wraps):

--
--| FUNCTION: stsFormattedDate
--|
--| Author:   Ken Ray
--| Version:  2.6
--| Created:  8/2/04
--| Last Mod: 2/8/11
--| Requires: --
--|
--| Formats an incoming date according to a variety of date
--| patterns and outputs the result.
--|
--| Parameters:
--| : The date to be formatted. Must be a date or
--|   date/time combination,  or empty. If empty, uses the
--|   current date and default 2AM time if time is
--|   requested in the pattern. Will also check to see if the
--|   date is a mySQL-formatted
--|   date if it can't be identified as a "normal" date.
--| : The pattern to use to format the incoming date.
--|   The following patterns are available where "M" is used for
--|   the month, "D" for the day, "Y" for the year, "W" for
--|   the weekday name, "H" for hours, "P" for AM/PM,
--|   "N" for minutes, "S" for seconds, and "G" for GMT
--|   calculation, as follows:
--|M = month number, no leading zeroes (1-12)
--|MM = month number, with leading zeroes (01-12)
--|MMM = month name, abbreviated (Jan - Dec)
--| = month name, long (January - December)
--|D = day number, no leading zeroes (1-31)
--|DD = day number, with leading zeroes (01-31)
--|W = weekday name, single letter (S/M/T/W/t/F/s)
--|WW = weekday name, shortest (Su/M/Tu/W/Th/F/Sa)
--|WWW = weekday name, abbreviated (Sun/Mon/Tue/Wed/
--| Thu/Fri/Sat)
--| = weekday name, long (Sunday/Monday/Tuesday/etc.)
--|YY = two-digit year (00-99)
--| = four digit year (1970-2004)
--|H = hours, no leading zeroes, 12 hour format (1-12)
--|HH = hours, leading zeroes, 12 hour format (01-12)
--|HHH = hours, no leading zeroes, 24 hour format (1-23)
--| = hours, leading zeroes, 24 hour format (01-23)
--|H = military time format ( - 2359)
--|P = AM/PM, single character, lower case (a/p)
--|PP = AM/PM, single character, upper case (A/P)
--|PPP = AM/PM, two characters, lower case (am/pm)
--| = AM/PM, two characters, upper case (AM/PM)
--|N = minutes, no leading zeroes (0-59)
--|NN = minutes, leading zeroes (00-59)
--|S = seconds, no leading zeroes (0-59)
--|SS = seconds, leading zeroes (00-59)
--|G = GMT Offset (-1100 to +1100)
--|GH = GMT Offset hours, including sign (-11 to +11)
--|GM = GMT Offset minutes
--| : Determines whether or not the format needs to
--|   have brackets surrounding each part of the pattern. If true,
--|   it requires that all patterns are surrounded by square
--|   brackets, and allows the letters used in the pattern
--|   (MDYWHNSGP) to be used as part of the return string that
--|   is *not* part of the pattern (for example "GMT" as a string).
--|   If false, pattern letters are replaced by the corresponding
--|   date parts in the returned string (so it assumes that
--|   characters that are not part of the pattern are not letters,
--|   but symbols).
--
function stsFormattedDate pDate,pFormat,pUseBrackets
  if (pDate = "") or (pDate = "Now") then put the date && the long time into
pDate
  if (pFormat = "") then put "MM/DD/" into pFormat
  if isNumber(word -1 of pDate) then
if (word -1 of pDate <=2359) and (length(word -1 of pDate)=4) then
  -- date and military time sent in, just needs a colon between
  -- hour and minute for it to be converted
  put ":" before char -2 of pDate
else
  -- simple number, coerce to AM
  if word -1 of pDate <= 12 then
put ((word -1 of pDate) & ":00 AM") into word -1 of pDate
  else
-- a number larger than 12 but not military? Can't do anything
-- with that
return "invalid time"
  end if
end if
  end if
  
  -- Check for am/pm without preceding space
  put word -1 of pDate into tTestTime
  if (tTestTime <> "AM") and (tTestTime <> "PM") then
put offset("a",tTestTime) into tLoc
if (tLoc <> 0) and (char (tLoc-1) of pDate <> " ") then
  if char (tLoc+1) of tTestTime <> "m" then put "m" after \
 char tLoc of tTestTime
  put " " before char tLoc of tTestTime
  put word -2 of tTestTime into tTime
  if ":"is not in tTime then
-- probably someth

Re: System Date/Time Format Problems

2011-07-03 Thread Pete
I think I only described item 2 as a bug (and it definitely is).  Item 1 is
an enhancement request and item 3, who knows - it's  an "inconsistency",
which is not good.  New formats would be fine with me if they fix the
issues.

No doubt the mothership will categorise them however they see fit and take
the appropriate action.  Since they seem to be 99% focused on mobile
platforms right now (probably correctly), I'm not holding my breath for any
of them to be fixed any time soon.

Pete
Molly's Revenge <http://www.mollysrevenge.com>




On Sun, Jul 3, 2011 at 7:01 PM, J. Landman Gay wrote:

> On 7/3/11 4:58 PM, Pete wrote:
>
>> I think I already mentioned this but I've entered QC report number 9604
>> about all this.  There's various problems involved:
>>
>> 1) LC needs one more keyword so it can deal with the 4 date/time formats
>> used by OS X.
>> 2) There's a bug in the "abbrev system time" - it returns LC's default
>> abbrev format, not the format in any of the OS X user preferences.
>> 3) There's an inconsistency between the long system date and the long
>> system
>> time - the date returned is in the OS X full format, and the time is in
>> the
>> OS X medium format.
>>
>> These issues occur anywhere you refer to system dates and times, including
>> the convert command.
>>
>
> They aren't bugs, they're legacy formats that go back 20 years, and
> changing them would break a lot of stacks. When these date/time formats were
> implemented they matched the ones in Mac OS 6 and 7, and probably still
> matched in OS 9, though I don't remember.
>
> So rather than changing those, we should get new formats that represent
> more modern system options. This would be a feature request, so it would be
> good to update your report to reflect that.
>
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
> __**_
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System Date/Time Format Problems

2011-07-03 Thread J. Landman Gay

On 7/3/11 4:58 PM, Pete wrote:

I think I already mentioned this but I've entered QC report number 9604
about all this.  There's various problems involved:

1) LC needs one more keyword so it can deal with the 4 date/time formats
used by OS X.
2) There's a bug in the "abbrev system time" - it returns LC's default
abbrev format, not the format in any of the OS X user preferences.
3) There's an inconsistency between the long system date and the long system
time - the date returned is in the OS X full format, and the time is in the
OS X medium format.

These issues occur anywhere you refer to system dates and times, including
the convert command.


They aren't bugs, they're legacy formats that go back 20 years, and 
changing them would break a lot of stacks. When these date/time formats 
were implemented they matched the ones in Mac OS 6 and 7, and probably 
still matched in OS 9, though I don't remember.


So rather than changing those, we should get new formats that represent 
more modern system options. This would be a feature request, so it would 
be good to update your report to reflect that.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System Date/Time Format Problems

2011-07-03 Thread Pete
I think I already mentioned this but I've entered QC report number 9604
about all this.  There's various problems involved:

1) LC needs one more keyword so it can deal with the 4 date/time formats
used by OS X.
2) There's a bug in the "abbrev system time" - it returns LC's default
abbrev format, not the format in any of the OS X user preferences.
3) There's an inconsistency between the long system date and the long system
time - the date returned is in the OS X full format, and the time is in the
OS X medium format.

These issues occur anywhere you refer to system dates and times, including
the convert command.

Jacque - thanks for your code - it works pretty well for standard US
settings, as you said, but it doesn't help if the user has customised the
System Preferences date and time formats or if they are not using US
formats.  My objective is to allow the user to tell me that dates are to be
displayed in any one of the System Preference settings (or set a custom one
of their own).  I've figured out how to get the user's System Preference
settings from a combination of the shell locale command and an Applescript
and am busy writing a handler to format dates accordingly.

Pete
Molly's Revenge <http://www.mollysrevenge.com>




On Sun, Jul 3, 2011 at 11:14 AM, Pete  wrote:

> Thanks Jacque, that's a great start.  I also found the dateFormat function
> which I think may assist in all this.
> Pete
> Molly's Revenge <http://www.mollysrevenge.com>
>
>
>
>
> On Sat, Jul 2, 2011 at 8:15 PM, J. Landman Gay 
> wrote:
>
>> On 7/2/11 2:46 PM, Pete wrote:
>>
>>  So if a user tells me he wants his dates in OS X medium or long format, I
>>> can't find out what that is with LC code, same for an OS X long time.
>>>
>>
>> Start with these. The functions below will only work on US systems, or in
>> countries that use US date/time formats. If you want to accomodate other
>> countries you'll have to do more work.
>>
>> The "lookupZone" function is for the long and full time formats. I have
>> exactly one entry in there for central time. What you need to do for that is
>> make a list of all the time zones, one per line, in the same order my
>> example uses. Store it in a custom property or somewhere. Retrieve the list
>> for the lookup function.
>>
>> There may be a shell call to do that, or a list stored somewhere in OS X.
>> I don't know. Anyway, maybe this will get you started:
>>
>> function formatDate pDate,pFormat -- short, medium, long, full
>>  switch pFormat
>>case "short"
>>  convert pDate to short date
>>  put pDate into tFormattedDate
>>  break
>>case "medium"
>>  convert pDate to abbrev date
>>  put item 2 to -1 of pDate into tFormattedDate
>>  break
>>case "long"
>>  convert pDate to long date
>>  put item 2 to -1 of pDate into tFormattedDate
>>  break
>>case "full"
>>  convert pDate to long date
>>  put pDate into tFormattedDate
>>  break
>>  end switch
>>  return tFormattedDate
>> end formatDate
>>
>> function formatTime pTime,pFormat
>>  switch pFormat
>>case "short"
>>  convert pTime to short time
>>  put pTime into tFormattedTime
>>  break
>>case "medium"
>>  convert pTime to long time
>>  put pTime into tFormattedTime
>>  break
>>case "long"
>>case "full"
>>  convert pTime to long time
>>  put pTime into tFormattedTime
>>  convert pTime to internet date
>>  put word 6 of pTime into tTimeZone
>>  put lookupZone(tTimeZone) into tZoneInfo
>>  if pFormat = "long" then
>>put item 2 of tZoneInfo into tTimeZone
>>  else -- full
>>put item 3 of tZoneInfo into tTimeZone
>>  end if
>>  put space & tTimeZone after tFormattedTime
>>  break
>>  end switch
>>  return tFormattedTime
>> end formatTime
>>
>> function lookupZone pHourOffset
>>  -- need a list in this format, one line per zone:
>>  put "-0500,CST,CT" into tZones
>>  return line lineoffset(pHourOffset,tZones) of tZones
>> end lookupZone
>>
>>
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>>
>> __**_
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>>
>>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System Date/Time Format Problems

2011-07-03 Thread Pete
Thanks Jacque, that's a great start.  I also found the dateFormat function
which I think may assist in all this.
Pete
Molly's Revenge 




On Sat, Jul 2, 2011 at 8:15 PM, J. Landman Gay wrote:

> On 7/2/11 2:46 PM, Pete wrote:
>
>  So if a user tells me he wants his dates in OS X medium or long format, I
>> can't find out what that is with LC code, same for an OS X long time.
>>
>
> Start with these. The functions below will only work on US systems, or in
> countries that use US date/time formats. If you want to accomodate other
> countries you'll have to do more work.
>
> The "lookupZone" function is for the long and full time formats. I have
> exactly one entry in there for central time. What you need to do for that is
> make a list of all the time zones, one per line, in the same order my
> example uses. Store it in a custom property or somewhere. Retrieve the list
> for the lookup function.
>
> There may be a shell call to do that, or a list stored somewhere in OS X. I
> don't know. Anyway, maybe this will get you started:
>
> function formatDate pDate,pFormat -- short, medium, long, full
>  switch pFormat
>case "short"
>  convert pDate to short date
>  put pDate into tFormattedDate
>  break
>case "medium"
>  convert pDate to abbrev date
>  put item 2 to -1 of pDate into tFormattedDate
>  break
>case "long"
>  convert pDate to long date
>  put item 2 to -1 of pDate into tFormattedDate
>  break
>case "full"
>  convert pDate to long date
>  put pDate into tFormattedDate
>  break
>  end switch
>  return tFormattedDate
> end formatDate
>
> function formatTime pTime,pFormat
>  switch pFormat
>case "short"
>  convert pTime to short time
>  put pTime into tFormattedTime
>  break
>case "medium"
>  convert pTime to long time
>  put pTime into tFormattedTime
>  break
>case "long"
>case "full"
>  convert pTime to long time
>  put pTime into tFormattedTime
>  convert pTime to internet date
>  put word 6 of pTime into tTimeZone
>  put lookupZone(tTimeZone) into tZoneInfo
>  if pFormat = "long" then
>put item 2 of tZoneInfo into tTimeZone
>  else -- full
>put item 3 of tZoneInfo into tTimeZone
>  end if
>  put space & tTimeZone after tFormattedTime
>  break
>  end switch
>  return tFormattedTime
> end formatTime
>
> function lookupZone pHourOffset
>  -- need a list in this format, one line per zone:
>  put "-0500,CST,CT" into tZones
>  return line lineoffset(pHourOffset,tZones) of tZones
> end lookupZone
>
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
> __**_
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System Date/Time Format Problems

2011-07-02 Thread J. Landman Gay

On 7/2/11 2:46 PM, Pete wrote:


So if a user tells me he wants his dates in OS X medium or long format, I
can't find out what that is with LC code, same for an OS X long time.


Start with these. The functions below will only work on US systems, or 
in countries that use US date/time formats. If you want to accomodate 
other countries you'll have to do more work.


The "lookupZone" function is for the long and full time formats. I have 
exactly one entry in there for central time. What you need to do for 
that is make a list of all the time zones, one per line, in the same 
order my example uses. Store it in a custom property or somewhere. 
Retrieve the list for the lookup function.


There may be a shell call to do that, or a list stored somewhere in OS 
X. I don't know. Anyway, maybe this will get you started:


function formatDate pDate,pFormat -- short, medium, long, full
  switch pFormat
case "short"
  convert pDate to short date
  put pDate into tFormattedDate
  break
case "medium"
  convert pDate to abbrev date
  put item 2 to -1 of pDate into tFormattedDate
  break
case "long"
  convert pDate to long date
  put item 2 to -1 of pDate into tFormattedDate
  break
case "full"
  convert pDate to long date
  put pDate into tFormattedDate
  break
  end switch
  return tFormattedDate
end formatDate

function formatTime pTime,pFormat
  switch pFormat
case "short"
  convert pTime to short time
  put pTime into tFormattedTime
  break
case "medium"
  convert pTime to long time
  put pTime into tFormattedTime
  break
case "long"
case "full"
  convert pTime to long time
  put pTime into tFormattedTime
  convert pTime to internet date
  put word 6 of pTime into tTimeZone
  put lookupZone(tTimeZone) into tZoneInfo
  if pFormat = "long" then
put item 2 of tZoneInfo into tTimeZone
  else -- full
put item 3 of tZoneInfo into tTimeZone
  end if
  put space & tTimeZone after tFormattedTime
  break
  end switch
  return tFormattedTime
end formatTime

function lookupZone pHourOffset
  -- need a list in this format, one line per zone:
  put "-0500,CST,CT" into tZones
  return line lineoffset(pHourOffset,tZones) of tZones
end lookupZone

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System Date/Time Format Problems

2011-07-02 Thread J. Landman Gay

On 7/2/11 2:46 PM, Pete wrote:


For dates:
LC Short = OSX Short
LC Long = OSX Full
LC Abbrev = returns a date that is not in any of the OS X formats
no LC format for OSX medium or long


For times:
LC Short = OSX Short
LC Abbrev = OSX Short
LC Long = OSX Medium
no LC format for OSX Long or full

So if a user tells me he wants his dates in OS X medium or long format, I
can't find out what that is with LC code, same for an OS X long time.  I'm
hoping I will be able get hold of all the date/time formats with a shell
command or with Applescript but no luck yet.  I may have to ask the user to
define the formats again with my ap ( that goes back to the other thread
about duplicate object names!)


All I meant was that you already have most of them, and the ones that 
are missing are easy to construct. LiveCode provides all the data. For 
the LC formats that have no OS X equivalent, just don't use those. A 
quick function to construct the ones you do need would be pretty easy.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System Date/Time Format Problems

2011-07-02 Thread Pete
Thanks Jacque.  You may have missed the original post in this thread, so
here's a quick recap.

I want the user to be able to set a preference that he/she wants his
dates/times/displayed in any of the OS X formats of short, medium, long, and
full that are set in the OS X System Prefernces.  The problem is that the
Livecode system date formats don't fully reflect the system preference
settings on OS X (don't know about Windows).  Some of that is because OS X
has four date/time formats and LC only has three, but there's at least one
instance where LC returns a date that is not in any of the OS X date
formats.  Here's a summary of what happens on my Mac running OS X 10.6.8:

For dates:
LC Short = OSX Short
LC Long = OSX Full
LC Abbrev = returns a date that is not in any of the OS X formats
no LC format for OSX medium or long


For times:
LC Short = OSX Short
LC Abbrev = OSX Short
LC Long = OSX Medium
no LC format for OSX Long or full

So if a user tells me he wants his dates in OS X medium or long format, I
can't find out what that is with LC code, same for an OS X long time.  I'm
hoping I will be able get hold of all the date/time formats with a shell
command or with Applescript but no luck yet.  I may have to ask the user to
define the formats again with my ap ( that goes back to the other thread
about duplicate object names!)

Pete
Molly's Revenge <http://www.mollysrevenge.com>




On Sat, Jul 2, 2011 at 9:37 AM, J. Landman Gay wrote:

> On 7/2/11 11:16 AM, Pete wrote:
>
>  But Im still faced with the problem of figuring out what the user's System
>> Preference settings are for the short, medium, long, and full date and
>> time
>> formats.
>>
>
> You can get their preferred format by either setting the usesystemdate to
> true and then getting a date or time, or just by getting "the system date".
> Then all the LiveCode date formats will reflect the user preference. For the
> abbrev date, where the month is not fully expanded, a quick lookup in the
> monthnames would fix that. Just replace the abbreviated month name with the
> expanded one.
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
>
> __**_
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System Date/Time Format Problems

2011-07-02 Thread J. Landman Gay

On 7/2/11 11:16 AM, Pete wrote:


But Im still faced with the problem of figuring out what the user's System
Preference settings are for the short, medium, long, and full date and time
formats.


You can get their preferred format by either setting the usesystemdate 
to true and then getting a date or time, or just by getting "the system 
date". Then all the LiveCode date formats will reflect the user 
preference. For the abbrev date, where the month is not fully expanded, 
a quick lookup in the monthnames would fix that. Just replace the 
abbreviated month name with the expanded one.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System Date/Time Format Problems

2011-07-02 Thread Pete
Thanks Peter.  This and the strftime shell command will save me a lot of
time in formatting dates in LC!

But Im still faced with the problem of figuring out what the user's System
Preference settings are for the short, medium, long, and full date and time
formats.  I want to give them a preference that will allow them to set one
of those options for how they want dates/times displayed in my app, or have
a custom option that allows them to specify another format using the
date/strftime format strings conventions.

Incidentally, I added a problem report to the QC regarding the issues with
the various forms of the LC system date compared with the OS X system date
formats.

Pete
Molly's Revenge <http://www.mollysrevenge.com>




On Sat, Jul 2, 2011 at 5:43 AM, Peter Brigham MD  wrote:

> There may be a better way, but you might have to use a shell call. Execute
> the following in the message box:
>
>   put shell("man date | col -b")
>
> and look at the options. You can get any format you want, and this way you
> would have full control over date display format in LC.
>
> -- Peter
>
> Peter M. Brigham
> pmb...@gmail.com
> http://home.comcast.net/~pmbrig
>
> On Jul 1, 2011, at 1:59 PM, Pete wrote:
>
> > I'm running into some major differences in the way LC displays system
> date
> > and time versus what I have set up in my OSX control panel and wondering
> if
> > anyone else has run into this.  This is in the context of providing my
> users
> > with a preference setting for how they want dates/times displayed.
> >
> > First problem is that OSX has 4 date and time formats (Short, Medium,
> Long,
> > and Full) whereas LC only has three (Short, Abbrev, Long) so there are
> some
> > inevitable discrepancies.
> >
> > For dates:
> > LC Short = OSX Short
> > LC Long = OSX Full
> > LC Abbrev = no OSX format
> > no LC format = OSX medium or long
> >
> >
> > For times:
> > LC Short = OSX Short
> > LC Abbrev = OSX Short
> > LC Long = OSX Medium
> > no LC format = OSX Long or full
> >
> > Any thoughts?
> >
> > Pete
> > Molly's Revenge <http://www.mollysrevenge.com>
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: System Date/Time Format Problems

2011-07-02 Thread Peter Brigham MD
There may be a better way, but you might have to use a shell call. Execute the 
following in the message box:

   put shell("man date | col -b")

and look at the options. You can get any format you want, and this way you 
would have full control over date display format in LC.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig

On Jul 1, 2011, at 1:59 PM, Pete wrote:

> I'm running into some major differences in the way LC displays system date
> and time versus what I have set up in my OSX control panel and wondering if
> anyone else has run into this.  This is in the context of providing my users
> with a preference setting for how they want dates/times displayed.
> 
> First problem is that OSX has 4 date and time formats (Short, Medium, Long,
> and Full) whereas LC only has three (Short, Abbrev, Long) so there are some
> inevitable discrepancies.
> 
> For dates:
> LC Short = OSX Short
> LC Long = OSX Full
> LC Abbrev = no OSX format
> no LC format = OSX medium or long
> 
> 
> For times:
> LC Short = OSX Short
> LC Abbrev = OSX Short
> LC Long = OSX Medium
> no LC format = OSX Long or full
> 
> Any thoughts?
> 
> Pete
> Molly's Revenge <http://www.mollysrevenge.com>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


System Date/Time Format Problems

2011-07-01 Thread Pete
I'm running into some major differences in the way LC displays system date
and time versus what I have set up in my OSX control panel and wondering if
anyone else has run into this.  This is in the context of providing my users
with a preference setting for how they want dates/times displayed.

First problem is that OSX has 4 date and time formats (Short, Medium, Long,
and Full) whereas LC only has three (Short, Abbrev, Long) so there are some
inevitable discrepancies.

For dates:
LC Short = OSX Short
LC Long = OSX Full
LC Abbrev = no OSX format
no LC format = OSX medium or long


For times:
LC Short = OSX Short
LC Abbrev = OSX Short
LC Long = OSX Medium
no LC format = OSX Long or full

Any thoughts?

Pete
Molly's Revenge <http://www.mollysrevenge.com>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: put the system date

2011-05-07 Thread Pete
I tried this on my Mac, also 10.6, with LC 4.1 and it displayed the
Norwegian date correctly.  I know you have to restart LC after making system
date format changes, other than that don't know what to suggest.
Pete
Molly's Revenge <http://www.mollysrevenge.com>




On Sat, May 7, 2011 at 10:02 AM, Louis Janus  wrote:

> I have changed the system date (on my Mac OS 10.6) to Norwegian time and
> settings. Now I'm trying to get Live Code to show it in a field.
>
> I gave the command
>
> put long system date && the time
>
>
> (in the msg box), hoping to get lørdag 7. mai, because that's how I set the
> system preferences. But I consistently get
>
>
> Saturday, May 7, 2011 11:56 AM
>
>
>
> I ideas on getting the system date? I know it should be simple. I can
> convert it, but figured it won't need it.
>
>
> Takk på forhånd .. for all Norwegian readers.
> --
> Louis Janus
>  Less Commonly Taught Languages (LCTL) Project
>  Center for Advanced Research on Language Acquisition (CARLA)
>  University of Minnesota
>  140 C University International Center
>  331 17th Ave Southeast
>  Minneapolis, MN 55414 USA
>  phone: 612/624-9016; fax: 612/624-7514
> ---
> l...@umn.edu  or  janus...@umn.edu
> ---
> http://www.carla.umn.edu/LCTL/db
> http://www.carla.umn.edu/about/profiles/janus.html
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


put the system date

2011-05-07 Thread Louis Janus
I have changed the system date (on my Mac OS 10.6) to Norwegian time and
settings. Now I'm trying to get Live Code to show it in a field.

I gave the command

put long system date && the time


(in the msg box), hoping to get lørdag 7. mai, because that's how I set the
system preferences. But I consistently get


Saturday, May 7, 2011 11:56 AM



I ideas on getting the system date? I know it should be simple. I can
convert it, but figured it won't need it.


Takk på forhånd .. for all Norwegian readers.
-- 
Louis Janus
 Less Commonly Taught Languages (LCTL) Project
 Center for Advanced Research on Language Acquisition (CARLA)
 University of Minnesota
 140 C University International Center
 331 17th Ave Southeast
 Minneapolis, MN 55414 USA
 phone: 612/624-9016; fax: 612/624-7514
---
l...@umn.edu  or  janus...@umn.edu
---
http://www.carla.umn.edu/LCTL/db
http://www.carla.umn.edu/about/profiles/janus.html
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode