PCL
pcl::FileTime Struct Reference

File date and time. More...

#include <FileInfo.h>

Public Member Functions

double DaysSinceEpoch () const
 
bool operator< (const FileTime &t) const
 
bool operator== (const FileTime &t) const
 
double SecondsSinceEpoch () const
 
double ToJD () const
 

Public Attributes

uint8 day: 5
 Day [1,31].
 
uint8 hour: 5
 Hour [0,23].
 
uint16 milliseconds: 10
 Milliseconds [0,999].
 
uint8 minute: 6
 Minute [0,59].
 
uint8 month: 4
 Month [1,12].
 
uint8 second: 6
 Second [0,59].
 
uint16 year: 16
 Year.
 

Detailed Description

FileTime is used to represent the creation, last access and last modification times of a file or directory. On most file systems, this object represents a time point in the Coordinated Universal Time (UTC) time scale.

Definition at line 171 of file FileInfo.h.

Member Function Documentation

◆ DaysSinceEpoch()

double pcl::FileTime::DaysSinceEpoch ( ) const
inline

Returns the elapsed time in days since the standard UNIX epoch (1970 January 1.0 UTC).

Definition at line 226 of file FileInfo.h.

References ToJD().

Referenced by SecondsSinceEpoch().

◆ operator<()

bool pcl::FileTime::operator< ( const FileTime t) const
inline

Returns true iff this file time precedes another object t.

Definition at line 197 of file FileInfo.h.

References day, hour, milliseconds, minute, month, second, and year.

◆ operator==()

bool pcl::FileTime::operator== ( const FileTime t) const
inline

Returns true iff this file time is equal to another object t.

Definition at line 187 of file FileInfo.h.

References day, hour, milliseconds, minute, month, second, and year.

◆ SecondsSinceEpoch()

double pcl::FileTime::SecondsSinceEpoch ( ) const
inline

Returns the elapsed time in seconds since the standard UNIX epoch (1970 January 1.0 UTC).

Definition at line 235 of file FileInfo.h.

References DaysSinceEpoch().

◆ ToJD()

double pcl::FileTime::ToJD ( ) const

Returns this file date and time as a Julian day number. The returned value represents a time point in the UTC time scale on most file systems.

Referenced by DaysSinceEpoch().


The documentation for this struct was generated from the following file: