Mathematica 9 is now available

Wolfram Library Archive


All Collections Articles Books Conference Proceedings
Courseware Demos MathSource Technical Notes
Title Downloads

TimeMath
Author

Jack Calman
Organization: Johns Hopkins University
Old MathSource #

0208-369
Revision date

1996-10-17
Description

This notebook defines two functions to do time arithmetic. TimeAdd[tstart, dt] increments a start time by a given amount. TimeBetween[tstart, tstop] gives the difference (stop - tstart). The format of all time arguments is {year, month, day, hour, minute, second}, which is the same as that used by the built-in Date function. The time increment, dt, can be positive or negative. All arguments are integers.
Subject

*Mathematica Technology > Programming
Keywords

time, clock, calendar
Downloads Download Wolfram CDF Player

Download
TimeMath.nb (12.9 KB) - Mathematica Notebook

Files specific to Mathematica 2.2 version:
Download
TimeMath.ma (9.7 KB) - Mathematica Notebook 2.2 or older