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… th

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 R

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 e

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 ma

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

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 Jacq

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 Pl

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 version

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

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/sho

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 h

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

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

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-

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 i

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 res

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

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 unde

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 (or

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,

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:

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 t

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 retu

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, n

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 da

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

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

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 pro

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 dat

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

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. B