[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get default/local Date/Time patterns?
From: |
Mike Miller |
Subject: |
Re: How to get default/local Date/Time patterns? |
Date: |
Wed, 6 Apr 2016 08:58:19 -0700 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Wed, Apr 06, 2016 at 02:49:10 -0700, Denis S. wrote:
> Dear all,Problem: How can I get default/local Date/Time
> patterns/formats?There are a lot of functions that use /*format*/ as input
> parameter:/datenum ("datestr", *format*);datestr (DATE, *format*);.../But
> which function returns /*format*/ as output parameter.For example, in
> powershell I can get it like that:/PS
> H:\>(Get-Culture).DateTimeFormat.ShortDatePattern*yyyy-MM-dd*PS H:\>
> (Get-Culture).DateTimeFormat.ShortTimePattern*HH:mm*/
The default is a constant, there is no locale-awareness in Octave date
formatting currently. The help for datestr explains what the default
format is, that's the best you can do. There is no way to query for a
default format string, just leave off the format argument.
--
mike