Calculate with negative times
Andreas Raab
Andreas.Raab at gmx.de
Thu Mar 14 21:23:06 UTC 2002
Markus,
Internally the time _is_ represented as a negative value; it just
doesn't print that way. You might be able to just make up a different
print method and be happy with it.
Cheers,
- Andreas
> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org
> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On
> Behalf Of Markus Fritsche
> Sent: Thursday, March 14, 2002 10:16 PM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: RE: Calculate with negative times
>
>
> >> Okay, so I have to deal with date + time when I need something like
> >> -2:30?
>
> > There are various solutions and work-arounds. If you
> elaborate a bit more
> > on what you want to achieve you could get a more targeted answer...
>
> I need this for my "working time" calculator. Like
> Begin: 8:00
> Time to work: 7:31
> Pause: 0:30
> "Gleitzeit" -5:00
> End: 16:00
>
> "Geitzeit" = 0 at 21:01
> "Gleitzeit" at End: -5:01
> ...
>
> --
> SIGSTOP
>
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
>
>
>
More information about the Squeak-dev
mailing list
|