TIP: Click on subject to list as thread! ANSI
echo: fido_util
to: Dallas Hinton
from: mark lewis
date: 2012-08-27 23:16:10
subject: Daynbr

ml> i have never seen sources for the dos daynbr tool... however, it
ml> isn't really needed if you have something (ie: 4DOS/4OS2/4NT) that
ml> can generate the dayofyear number... some folks mistakenly call this
ml> the julian day number...

 DH> Thanks, Mark -- no, it has to be Windows 32/64 bit.

hummm... may i ask why? a limitation of the OS' console operations? i don't
know how far 4DOS/4OS2/4NT has gone but there may be a 32bit build of
them...

ml> in any case, the best thing i like about daynbr is that it is easy
ml> to denote the number {at}### and doesn't require something like %_DOY%
ml> which really isn't all that bad... another positive is that it can
ml> do some rudimentary math on the doy number, too... i have, somewhere
ml> around here, replicated most all of this in 4DOS bat/btm files but i
ml> haven't seen it in a very long time... might be easier to just write
ml> a replacement from scratch :?

 DH> It may be - my programmer friend was hoping for a starting point.
 DH> :-) 

ahhh... other than a simple DOY tool? ;)

ml> speaking of writing from scratch, if you do pascal, then you might
ml> want to look at FPC (FreePasCal) which is cross-platform and
ml> multi-bits... i'm pretty sure they have some library code that can
ml> (easily?) handle this and even the maths stuffs :)

 DH> Thanks kindly!

TBH, this is one of the things that i've been looking at, myself... i've
been working on a tool to merge satellite TLEs and some of this date stuff
has come into play... especially on the "outside" when the daily
archive is archived... but with the routines i'm using, i can easily see
where feeding a full date can/will result in a DOY number being returned...
at that point, it is just a matter of relatively duplicating daynbr... the
biggest thing i see as a drawback is that daynbr is a shell program... by
that i'm meaning that it does the doy calcs and formatting on the {at}###
items found on the command line and then it shells out to another console
to do the actual work and feeds that math {at}### calculation to the shelled
task in the same manner that i was thinking of just setting an environment
variable to the needed doy variable...

i hope that makes sense and may also offer some assistance to the task you
are looking at...

FWIW: everything, other than the new coding of an app for this, is all
16bit stuff... everything in BATPOWER that might help you seems to be but
it is possible that i've overlooked something...

)\/(ark

* Origin: (1:3634/12)
SEEN-BY: 10/1 19/33 75 34/999 123/500 128/2 187 135/364 140/1 222/2 226/0
SEEN-BY: 230/150 249/303 250/1 306 261/20 38 100 1381 1406 266/1413 267/155
SEEN-BY: 280/1027 311/2 320/119 219 340/400 393/68 396/45 633/260 267 712/848
SEEN-BY: 800/432 801/161 189 5030/709 1256
@PATH: 3634/12 123/500 261/38 633/260 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™.