> Is there a function to do the adding with time. (like DateAdd)
> i want to create a output with the hours of the day by the half hour.
>
> meaning:
> 8:00
> 8:30
> 9:00
> 9:30
>
> does anyone know of a way to do this??

Surprisingly, DateAdd does this... it allows hours (h), Minutes (n) and
Seconds (s)

So, you could do;

<cfset variables.myStartTime=CreateTime(8,0,0)>
<cfloop index="variables.i" from=0 to=3>

<cfoutput>#TimeFormat(DateAdd("n",Evaluate(30*variables.i),variables.myStart
Time)#<br></cfoutput>
</cfloop>

This would produce what you're looking for

Philip Arnold
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to