| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | timer independent of day change |
Hello Leonard, and thanx for the info.
BB>> For recording midifiles to MidiDisks...
BB>> I need to time 74 minutes or 148 minutes or a specified number of
BB>> minutes.
BB>> If I start too close to 24:00 hours, the day rollover breaks
BB>> my btm. So I'm trying to use %{at}fileage.
LE> Fileage just converts the bitmapped date/time fields in the
LE> directory entry into an integer. So it jumps all over the place.
LE> It's *not* suitable for timing.
So that's what {at}fileage is doing :-)
I now remember the thread on uptime, so I could adapt this:
:UP
if not exist c:\uptime.tck (echo c:\uptime.tck missing - aborting.^quit 1)
set age=%{at}eval[86400 * (%{at}date[] - %{at}date[%{at}filedate[c:\uptime.tck]])...
... + %{at}time[%_time] - %{at}time[%{at}filetime[c:\uptime.tck]]]
set mins=%{at}eval[%age% %% 3600 \ 60]
set hours=%{at}eval[%age\3600]
echo Session age: %hours Hours, %mins Minutes
quit %hours
Regards, Barry
--- Terminate 5.00/Pro
* Origin: EBO-BBS A'dam +31-20-6002828 (2:280/901.42)SEEN-BY: 396/1 632/0 371 633/260 267 270 371 635/506 728 639/252 @PATH: 280/901 0 801 270/101 396/1 633/260 635/506 728 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™.