PCL
pcl::FileTime Struct Reference

File date and time. More...

#include <File.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 288 of file File.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 336 of file File.h.

◆ operator<()

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

Returns true iff this file time precedes another object t.

Definition at line 314 of file File.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 304 of file File.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 345 of file File.h.

◆ 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.


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