[#BloombergLP-bdls-FilesystemUtil_UnixImpUtil-getLastModificationTime]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil_UnixImpUtil.adoc[FilesystemUtil&lowbar;UnixImpUtil]::getLastModificationTime
:relfileprefix: ../../../
:mrdocs:

Load the file&apos;s last modification time into `time`&period;

== Synopsis

Declared in `&lt;bdls&lowbar;filesystemutil&lowbar;uniximputil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
getLastModificationTime(
    xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime]* time,
    xref:BloombergLP/bdls/FilesystemUtil_UnixImpUtil/FileDescriptor.adoc[FileDescriptor] descriptor);
----

== Description

Load into the specified `time` the last modification time of the file with the specified `descriptor`, as reported by the filesystem&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; Note that the time is reported in UTC&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *time*
| receives the last modification time in UTC
| *descriptor*
| open file descriptor to query
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
