TIP: Click on subject to list as thread! ANSI
echo: mbse
to: Phil Taylor
from: Vince Coen
date: 2016-10-09 23:54:18
subject: date format ideas

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)
SEEN-BY: 19/33 34/999 90/1 116/18 120/331 123/500 128/187 140/1 218/700
SEEN-BY: 230/150 240/1120 249/303 250/1 261/38 100 266/404 267/155 280/464
SEEN-BY: 282/1031 1056 292/907 908 320/119 219 340/400 393/68 396/45 633/267
SEEN-BY: 633/280 640/384 712/620 848 770/1 801/161 189 2320/100
@PATH: 250/1 261/38 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.