]> git.mxchange.org Git - flightgear.git/commit
Clean-up date/time option parser.
authorThorstenB <brehmt@gmail.com>
Sun, 30 Oct 2011 13:48:53 +0000 (14:48 +0100)
committerThorstenB <brehmt@gmail.com>
Sun, 30 Oct 2011 13:48:53 +0000 (14:48 +0100)
commitacdf0dc4693abf7529d1f6f4cca2ddcd43cb3500
tree78df8169311584a80fdb816687eca0601ba62657
parent8f50e24f88417773ee19921272973be64afd4a46
Clean-up date/time option parser.
Add range checks and provide error messages.
Extend time offset to 64bit - so we're safe for 2038-01-19 (and the next
couple of millions years beyond...).
Support partial date/time strings, such as --start-date-gmt=2011 or
--start-date-gmt=:::12:00:00
src/Main/options.cxx
src/Time/TimeManager.cxx
src/Time/TimeManager.hxx