Subj : date format ideas
To : Phil Taylor
From : Vince Coen
Date : Sun Oct 09 2016 11:54 pm
Hello Phil!
Saturday October 08 2016 21:40, you wrote to KEN BOWLEY:
KB>> Along with these changes is having MBSE use a time_t rather than
KB>> a string when possible so we can get rid of code (only two
KB>> places that I can think of at the moment) that manipulates a
KB>> date string into a
KB>> YYYYMMDD format before turning it into an integer for comparison
KB>> and sorting. Ken
> All the programming lanuages support a date lib that allows you to
> compare the dates as mm-dd-year.
Yes, but the best way of comparing is by yyyymmdd and then you can use a
simple
if date-1 > date-2 then . . . .
Vince
--- Mageia Linux v5/Mbse v1.0.6/GoldED+/LNX 1.1.501-b20150715
* Origin: Air Applewood, The Linux Gateway to the UK & Eire (2:250/1)