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

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