From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Windows file timestamp converted to local time Date: Mon, 16 Oct 2023 21:49:48 +0300 Organization: Tidorum Ltd Message-ID: References: <262bea8c-57ff-480e-b5aa-da94f0436e98n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 4w6g4mc1465mtIOad99CiAGJZrGcPJt8HWQysP+VFxKFXiLYi7 Cancel-Lock: sha1:bvpwHaOZvrVqGLUH8hcd+/WpV7E= sha256:nVO1DfaoDy0Mm6hH2ybwUdSuUb3e8Z1Ix2JoYWRdYr8= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: en-US In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:65794 List-Id: On 2023-10-16 21:35, Matt Borchers wrote: > Below is the function from System.OS_Lib. > Does anybody know where the C implementation can be found? > Does anybody know where the C implementation of "localtime" is found? > > function File_Time_Stamp (Name : C_File_Name) return OS_Time is > function File_Time (Name : Address) return OS_Time; > pragma Import (C, File_Time, "__gnat_file_time_name"); > begin > return File_Time (Name); > end File_Time_Stamp; (This question seems to be a follow-up ("Re:") to some earlier post, but my newsreader does not seem to find or show that earlier post.) What is the problem? Have you tried using the standard Ada services: Ada.Directories.Modification_Time and Ada.Calendar.Time_Zones.Local_Time_Offset?