What is reason for fixed system data format?

Peter Jeremy peterjeremy at optushome.com.au
Sat Jul 7 22:58:06 UTC 2007


On 2007-Jul-07 21:52:58 +0400, Alex Keda <admin at lissyara.su> wrote:
> I looks means for global change system date format (example -> 2007-07-07 
> 21:48:58). But - it not exist.
> In code some applications I see fixed string for length date string (example 
> - ./usr.sbin/syslogd/syslogd.c).
> =========
> What reason for use fixed format, and is exists plans for change this?

I presume you are referring to the time format returned by ctime(3).
This format is specified by POSIX and thre are no plans to change it.

You can create your own date formats (including locale variants) using
strftime(3) (available via the '+' options to date(1)).

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070707/7e7b8e3a/attachment.pgp


More information about the freebsd-current mailing list