pioneerspacesim/pioneer — pull request #3163 by johnbartholomew (2014-09-07 17:04:32+00:00)
Title: [WIP] Expose file modification times

Change summary:
* Adds a new DateTime representation, with conversions to/from the Gregorian calendar. This is used for date formatting (utils.cpp format_date) and for representing file modification times.
* Exposes file modification time through the FileInfo structure.
* Exposes file modification time to Lua in the results from ReadDirectory.
* (Best part) Modifies the AutoSave code so that it picks the next autosave number based on what the most recent autosave file is. This is for #3101 and is the motivation for this whole PR.
* Includes the file modification time in the file load/save dialog.

Essential missing features:
* No Windows support.
* Untested on OS X. (I can't test it on OS X as I don't have access to a Mac).

Non-essential missing features:
* The file dialog is now quite messy (the time/date display is long and columns aren't aligned), and the user can't choose to sort by file name.