develooper Front page | perl.perl6.language.datetime | Postings from September 2000

Re: RFC 99 (v3) Standardize ALL Perl platforms on UNIX epoch

From:
Bart Lateur
Date:
September 13, 2000 06:54
Subject:
Re: RFC 99 (v3) Standardize ALL Perl platforms on UNIX epoch
Message ID:
da1vrs8jsubu1jr8kvbs7dkb3brtba1051@4ax.com
On 13 Sep 2000 07:10:30 -0000, Perl6 RFC Librarian wrote:

>In addition, a C<systime> function should be added which provides access
>to the native epoch/system time. For simplification, it might be best if
>this C<systime> function remain the basis for other library-related
>functions, such as C<stat>, C<lstat>, and so on, which typically rely on
>native system time.

Eek! No!

Next you'll tell me that

	scalar localtime((stat $file)[9])

will return incorrect results on some platforms!

Making time uniform across platforms, so that the numerical value for a
certain date/time is independent on the platform, is a good idea, but
don't tell me that we'll have two different representations, for which
we may or may not need a conversion! ONE time for the whole perl, thank
you.

n.b. This time value should be independent of time zones or Daylight
Savings Time.

-- 
	Bart.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About