comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Windows file timestamp converted to local time
Date: Mon, 16 Oct 2023 20:14:36 +0100	[thread overview]
Message-ID: <lyedhu4bxf.fsf@pushface.org> (raw)
In-Reply-To: df878937-795d-4c2d-ae75-e250361626a8n@googlegroups.com

Matt Borchers <mattborchers@gmail.com> writes:

> 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;

For the first question, very likely to be in gcc/ada/adaint.c in the GCC
sources (https://github.com/gcc-mirror/gcc)

localtime() is in libc; depends on your OS.

  parent reply	other threads:[~2023-10-16 19:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <262bea8c-57ff-480e-b5aa-da94f0436e98n@googlegroups.com>
2023-10-16 18:35 ` Windows file timestamp converted to local time Matt Borchers
2023-10-16 18:49   ` Niklas Holsti
2023-10-17  2:39     ` Randy Brukardt
2023-10-17 14:13     ` Matt Borchers
2023-10-17 16:28       ` Niklas Holsti
2023-10-17 16:35         ` Simon Wright
2023-10-16 19:14   ` Simon Wright [this message]
2023-10-17  7:25   ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox