Home : Products : Hach WIMS : Hach WIMS Client : Documentation : Function Reference : Spread Functions : Date Functions : TOD
Q11635 - INFO: TOD
 TOD returns a time string in the day.

SYNTAX:

TOD(Interval_Minutes,Offset,StartTime,Format)

IntervalMinutes: The number of minutes to add to the StartTime for each number added.

Offset: The number of interval_minutes you want to add to starttime.  Offset of 1 is the first time period, 2 is the 2nd...  It can be positive (to get times in the future) or negative (to get times in the past).

StartTime: A string representing a valid time (i.e. "08:15", "14:30", "2:30 PM", a cell reference to a cell containing a time, or a function that returns a date/time string (such as DSORT)

Format: Date Format (i.e. mm/dd/yyyy...) for the date returned by the function. 

 

EXAMPLES:

Start date of report is 8/1/2008.

TOD(1,1,"08:00","m/d/yy hh:nn:ss") returns 8/1/08 08:00:00 - Inteval_Minutes of 1, offset of 1 means first 1 minute period (ie same as the starttime).

TOD(1,2,"08:00","m/d/yy hh:nn:ss") returns 8/1/08 08:01:00 - Inteval_Minutes of 1, offset of 2 means second 1 minute period after starttime.

TOD(15,3,"09:00","hh:nn") returns 09:30:00 - Inteval_Minutes of 15, offset of 3 means 3rd 15 minute period after starttime.

TOD(C4,D4,"08:00","hh:nn") returns 07:50 - Where C4 = 5 and D4 = -1.

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 9/2/2008 11:28 AM.
Last Modified on 9/2/2008 11:28 AM.
Last Modified by Scott Dorner.
Article has been viewed 2689 times.
Rated 0 out of 10 based on 0 votes.
Print Article
Email Article