Category : Miscellaneous Language Source Code
Archive   : OPAL140.ZIP
Filename : HOWOLD.OPL
HOWOLD.OPL - Show how old something is.
Copyright (c) 1986 The Software Factory, Inc.
}
Print('%*HOWOLD - Find out how old something is.%n%n')
Let fldbar_ = '7m'
Let flddsp_ = '1m'
Let year = Conprompt(Integer_, 4, 'What year was its beginning? ')
Let mth = Conprompt(Integer_, 2, ' month? ')
Let day = Conprompt(Integer_, 2, ' day? ')
Print('%n%nThank you.... ')
Syswait(18)
Print('%aLet me Think...%a%n%n', '1m','0m')
Syswait(22)
Print('This is what I now about that object !!!%n%n')
Let td = Tdnow
Let ct = Tdmake(year, mth, day, 0, 0, 0)
Print('It has been around for:%n')
Print('%tSeconds....%ld%n', Tddiff(td_secs_, ct, td))
Print('%tMinutes....%ld%n', Tddiff(td_mins_, ct, td))
Print('%tHours......%ld%n', Tddiff(td_hrs_ , ct, td))
Print('%tDays.......%ld%n', Tddiff(td_days_, ct, td))
Print('%tWeeks......%ld%n', Tddiff(td_wks_ , ct, td))
Print('%tMonths.....%ld%n', Tddiff(td_mths_, ct, td))
Print('%tQtrs.......%ld%n', Tddiff(td_qtrs_, ct, td))
Print('%tYears......%ld%n', Tddiff(td_yrs_ , ct, td))
End
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/