LocalFileTime Manual

About

A simple class to store file dates and times (e.g. file creation date and time).

Access

Usually one is provided with a LocalFileTime, when browsing files via BrowseFiles class, see also BrowseFiles Manual.

It is also possible to directly query or set a time from/to a file.

For comparisons it might be handy to get the current time as LocalFileTime:

Allocation/Deallocation

A LocalFileTime can simply be declared, no special allocation is needed. Yet, it is recommended to initialize a new LocalFileTime instance via its LocalFileTime::Init() function to avoid problems with uninitialized member variables.

Use

Functions:

Attributes

Attributes:

  • LocalFileTime::year: Year (e.g. 2005 A.D. = 2005)
  • LocalFileTime::month: Month (e.g. September = 9)
  • LocalFileTime::day: Day (Between 1 and 31, e.g. 30th = 30)
  • LocalFileTime::hour: Hour (Between 0 and 23, 4pm = 16)
  • LocalFileTime::minute: Minute (Between 0 and 59)
  • LocalFileTime::second: Second (Between 0 and 59)

Miscellaneous

A LocalFileTime can be easily converted into a String:

  • DateToString(): Converts the value of a LocalFileTime into a string.

Further Reading