From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Windows file timestamp converted to local time Date: Tue, 17 Oct 2023 17:35:45 +0100 Organization: A noiseless patient Spider Message-ID: References: <262bea8c-57ff-480e-b5aa-da94f0436e98n@googlegroups.com> <04b87486-0614-4775-a40f-66138d08058an@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="e4d906927758e7c1828bdb549aa2db9c"; logging-data="3229058"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190gEaYlnHIvHf1eG0LdmLDTOIBzPP/6Es=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cancel-Lock: sha1:aFh9PUIHjqQYW28UiP/OY/gpxN8= sha1:xPHlBREXZ70ye60NkE4E0FHlAJ8= Xref: news.eternal-september.org comp.lang.ada:65801 List-Id: Niklas Holsti writes: > Ada.Directories.Modification_Time returns a value of type > Ada.Calendar.Time. However, "the time base associated with the type > Time of package Calendar is implementation defined" (RM 9.6(23)) so it > should be documented in the implementation documents, that is in the > GNAT documentation. Have you looked there? The GNAT RM says in Implementation Defined Characteristics[1] "The time base used is that provided by the C library function gettimeofday." [1] https://docs.adacore.com/live/wave/gnat_rm/html/gnat_rm/gnat_rm/implementation_defined_characteristics.html