System Date/Time Format Problems
Pete
pete at mollysrevenge.com
Sat Jul 2 12:16:36 EDT 2011
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 <pmbrig at gmail.com> 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
> pmbrig at 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 at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
More information about the use-livecode
mailing list