RE: time in CF
Or as they say in perl RTFM :-) Even as an expert in CF you can still gain new information by reading the docs every so often. For example I recently "found out" that variables static in a Java cfx persist in memory, if I'd bothered to read the docs properly I would known ... ~Justin Mac Carthy >The first answer came back on CF-Talk in 16 minutes, the above process took >less than a minute - you do the math as to which is faster and >which is more >productive for your knowledge... > >This may sound like arrogance, but being new to CF is no excuse for >lazyness - those of us who started using CF well before this list started >had to do things the hard way, and we're (hopefully) better programmers for >it... replying on other's knowledge for something this simple is just >lazy... ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: time in CF
> I was wondering how to display the time and date in CF. In asp it is > <%date%>. I know there must be an equally easy way of doing it in CF. If one of our employees couldn't do that, then they wouldn't work for us for long... The first answer came back on CF-Talk in 16 minutes, the above process took less than a minute - you do the math as to which is faster and which is more productive for your knowledge... This may sound like arrogance, but being new to CF is no excuse for lazyness - those of us who started using CF well before this list started had to do things the hard way, and we're (hopefully) better programmers for it... replying on other's knowledge for something this simple is just lazy... I'm sorry if this sounds agressive, but asking questions like this annoy me. Philip Arnold Director Certified ColdFusion Developer 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. ** ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: time in CF
You can see an example at my website, www.mr-bill.net. Though please ignore the rest of the site; it was my evil twin that did the ui and the development. -- Billy Cravens [EMAIL PROTECTED] Jeremy Bunton wrote: > > Thanks to everyone for the help. I really appreciate it. Is there a way to > make the time keep counting, show the seconds as they are changing. > > Jeremy > > -Original Message- > From: Kevin Schmidt [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 27, 2000 5:02 PM > To: CF-Talk > Subject: Fw: time in CF > > My brain is working my hands aren't typing right. > > Should be #DateFormat(Now(), "mm/dd/yy:)#,#TimeFormat(Now() "hh:mm:ss > tt")# > > - Original Message - > From: "Kevin Schmidt" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, November 27, 2000 3:17 PM > Subject: Re: time in CF > > > #DateFormat(Now(), "mm/dd/yy, hh:mm:ss tt")# > > > > That will give you: "11/27/00, 3:17:00 PM" > > - Original Message - > > From: "Jeremy Bunton" <[EMAIL PROTECTED]> > > To: "CF-Talk" <[EMAIL PROTECTED]> > > Sent: Monday, November 27, 2000 2:01 PM > > Subject: time in CF > > > > > > > Hello, > > > I was wondering how to display the time and date in CF. In asp it is > > > <%date%>. I know there must be an equally easy way of doing it in CF. > > > > > > Jeremy > > > > > > > > > ~~ > > > Structure your ColdFusion code with Fusebox. Get the official book at > > http://www.fusionauthority.com/bkinfo.cfm > > > > > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > > > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists > > > > > > > > > ~~ > Structure your ColdFusion code with Fusebox. Get the official book at > http://www.fusionauthority.com/bkinfo.cfm > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists > > ~~ > Structure your ColdFusion code with Fusebox. Get the official book at >http://www.fusionauthority.com/bkinfo.cfm > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: time in CF
Can you set a template to run as a scheduled task, and set it to run daily? I haven't delved into the feature myself, but I know the ColdFusion administrator has some such function. ibtoad wrote: > > How can I have CF set up a new image directory for uploads once a day? > > I know how to use the tag but how can I make sure it only runs > once a day? > > Thanks, > Rich > > ~~ > Structure your ColdFusion code with Fusebox. Get the official book at >http://www.fusionauthority.com/bkinfo.cfm > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists -- Jeff Houser | mailto:[EMAIL PROTECTED] AIM: Reboog711 | ICQ: 5246969 | Phone: 860-229-2781 -- Instant Cold Fusion 4.5 | ISBN: 0-07-213238-8 Due out 3rd Quarter 2001 -- DotComIt, LLC database driven web data using ColdFusion, Lotus Notes/Domino -- Half of the Alternative Folk Acoustic Duo called Far Cry Fly http://www.farcryfly.com | http://www.mp3.com/FarCryFly -- Promise me no dead end streets, and I'll guarantee we'll have a road ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: time in CF
How can I have CF set up a new image directory for uploads once a day? I know how to use the tag but how can I make sure it only runs once a day? Thanks, Rich ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: time in CF
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --_=_NextPart_001_01C058BB.0C1F5360 Content-Type: text/plain; charset="iso-8859-1" Use JavaScript for that type of action on displaying time Shawn Regan [EMAIL PROTECTED] Cold Fusion Developer Pacific Technology Solutions -Original Message- From: Jeremy Bunton [mailto:[EMAIL PROTECTED]] Sent: Monday, November 27, 2000 1:18 PM To: CF-Talk Subject: time in CF Thanks to everyone for the help. I really appreciate it. Is there a way to make the time keep counting, show the seconds as they are changing. Jeremy -Original Message- From: Kevin Schmidt [mailto:[EMAIL PROTECTED]] Sent: Monday, November 27, 2000 5:02 PM To: CF-Talk Subject: Fw: time in CF My brain is working my hands aren't typing right. Should be #DateFormat(Now(), "mm/dd/yy:)#,#TimeFormat(Now() "hh:mm:ss tt")# - Original Message - From: "Kevin Schmidt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 27, 2000 3:17 PM Subject: Re: time in CF > #DateFormat(Now(), "mm/dd/yy, hh:mm:ss tt")# > > That will give you: "11/27/00, 3:17:00 PM" > - Original Message - > From: "Jeremy Bunton" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Monday, November 27, 2000 2:01 PM > Subject: time in CF > > > > Hello, > > I was wondering how to display the time and date in CF. In asp it is > > <%date%>. I know there must be an equally easy way of doing it in CF. > > > > Jeremy > > > > > > ~~ > > Structure your ColdFusion code with Fusebox. Get the official book at > http://www.fusionauthority.com/bkinfo.cfm > > > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists --_=_NextPart_001_01C058BB.0C1F5360 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: time in CF Use JavaScript for that type of action on displaying = time Shawn Regan [EMAIL PROTECTED] Cold Fusion Developer Pacific Technology Solutions -Original Message- From: Jeremy Bunton [mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]= ] Sent: Monday, November 27, 2000 1:18 PM To: CF-Talk Subject: time in CF Thanks to everyone for the help. I really appreciate = it. Is there a way to make the time keep counting, show the seconds as = they are changing. Jeremy -Original Message- From: Kevin Schmidt [mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]] Sent: Monday, November 27, 2000 5:02 PM To: CF-Talk Subject: Fw: time in CF My brain is working my hands aren't typing = right. Should be #DateFormat(Now(), = "mm/dd/yy:)#,#TimeFormat(Now() "hh:mm:ss tt")# - Original Message - From: "Kevin Schmidt" = <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 27, 2000 3:17 PM Subject: Re: time in CF > #DateFormat(Now(), "mm/dd/yy, hh:mm:ss = tt")# > > That will give you: "11/27/00, 3:17:00 = PM" > - Original Message - > From: "Jeremy Bunton" = <[EMAIL PROTECTED]> > To: "CF-Talk" = <[EMAIL PROTECTED]> > Sent: Monday, November 27, 2000 2:01 PM > Subject: time in CF > > > > Hello, > > I was wondering how to display the time = and date in CF. In asp it is > > <%date%>. I know there must be an = equally easy way of doing it in CF. > > > > Jeremy > > > > > > = ~~ > > Structure your ColdFusion code with = Fusebox. Get the official book at > http://www.fusionauthority.com/bkinfo.cfm" = TARGET=3D"_blank">http://www.fusionauthority.com/bkinfo.cfm > > > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/" = TARGET=3D"_blank">http://www.mail-archive.com/cf-talk@houseoffusion.com/= > > Unsubscribe: h
RE: time in CF
you'd have to do that with javascript. ~Simon > Simon Horwith > Certified ColdFusion Developer > Fig Leaf Software > 1400 16th St NW, # 220 > Washington DC 20036 > 202.797.6570 (direct line) > www.figleaf.com > -Original Message- From: Jeremy Bunton [mailto:[EMAIL PROTECTED]] Sent: Monday, November 27, 2000 4:18 PM To: CF-Talk Subject: time in CF Thanks to everyone for the help. I really appreciate it. Is there a way to make the time keep counting, show the seconds as they are changing. Jeremy -Original Message- From: Kevin Schmidt [mailto:[EMAIL PROTECTED]] Sent: Monday, November 27, 2000 5:02 PM To: CF-Talk Subject: Fw: time in CF My brain is working my hands aren't typing right. Should be #DateFormat(Now(), "mm/dd/yy:)#,#TimeFormat(Now() "hh:mm:ss tt")# - Original Message - From: "Kevin Schmidt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 27, 2000 3:17 PM Subject: Re: time in CF > #DateFormat(Now(), "mm/dd/yy, hh:mm:ss tt")# > > That will give you: "11/27/00, 3:17:00 PM" > - Original Message - > From: "Jeremy Bunton" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Monday, November 27, 2000 2:01 PM > Subject: time in CF > > > > Hello, > > I was wondering how to display the time and date in CF. In asp it is > > <%date%>. I know there must be an equally easy way of doing it in CF. > > > > Jeremy > > > > > > ~~ > > Structure your ColdFusion code with Fusebox. Get the official book at > http://www.fusionauthority.com/bkinfo.cfm > > > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists > > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: time in CF
Well, the function to return the current date and time is: Now(). You can use the DateFormat and TimeFormat to have it display the way you want. Example Code: DateFormat(Now()) Output: 27-Nov-00 Code: DateFormat(Now(), "d/m/") Output: 11/27/2000 Code: TimeFormat(Now()) Output: 03:29 PM Code: TimeFormat(Now(), "h:mm:ss t") Output: 3:29:57 P Hope that helps. If you check your CF Documentation for DateFormat and TimeFormat, you'll get a list of all of the available masks for formatting your output. Scott Wolf Goodfriend Computer Training -Original Message- From: Jeremy Bunton [mailto:[EMAIL PROTECTED]] Sent: Monday, November 27, 2000 3:01 PM To: CF-Talk Subject: time in CF Hello, I was wondering how to display the time and date in CF. In asp it is <%date%>. I know there must be an equally easy way of doing it in CF. Jeremy ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: time in CF
#dateformat(now(),'dd/mm/')# you can manipulate how it is displayed with the dd/mm/ format Nov 28 2000 is MMM dd 28/11/00 is dd/mm/yy so on and so forth... Shawn W. McGehee [EMAIL PROTECTED] - Original Message - From: "Jeremy Bunton" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, November 27, 2000 2:01 PM Subject: time in CF > Hello, > I was wondering how to display the time and date in CF. In asp it is > <%date%>. I know there must be an equally easy way of doing it in CF. > > Jeremy > > > ~~ > Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: time in CF
and #dateformat(now()," mmm dd, ")# = Monday November 27, 2000 sorry only half the post went through. -Original Message- From: Jeremy Bunton [mailto:[EMAIL PROTECTED]] Sent: Monday, November 27, 2000 3:01 PM To: CF-Talk Subject: time in CF Hello, I was wondering how to display the time and date in CF. In asp it is <%date%>. I know there must be an equally easy way of doing it in CF. Jeremy ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebarRsts
RE: time in CF
#timeformat(now(),"hh:mm:ss tt")# = 02:32:45 AM -Original Message- From: Jeremy Bunton [mailto:[EMAIL PROTECTED]] Sent: Monday, November 27, 2000 3:01 PM To: CF-Talk Subject: time in CF Hello, I was wondering how to display the time and date in CF. In asp it is <%date%>. I know there must be an equally easy way of doing it in CF. Jeremy ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebarRsts
Re: time in CF
Current date and time? You can use the Now() function to get a date/time object with that. Afterwards, use the DateFormat() and TimeFormat() functions to format the date the way you like. -- Jamie Keane Programmer SolutionMasters, Inc. 9111 Monroe Rd., Suite 100 Charlotte, NC 28270 www.solutionmasters.com 704.563.5559 x 228 Voice 704.849.9291 Fax -Original Message- From: Jeremy Bunton <[EMAIL PROTECTED]> To: CF-Talk <[EMAIL PROTECTED]> Date: Monday, November 27, 2000 3:04 PM Subject: time in CF >Hello, >I was wondering how to display the time and date in CF. In asp it is ><%date%>. I know there must be an equally easy way of doing it in CF. > >Jeremy > > >~~ >Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm > >Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ >Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: time in CF
#DateFormat(Now(), "mm/dd/yy, hh:mm:ss tt")# That will give you: "11/27/00, 3:17:00 PM" - Original Message - From: "Jeremy Bunton" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, November 27, 2000 2:01 PM Subject: time in CF > Hello, > I was wondering how to display the time and date in CF. In asp it is > <%date%>. I know there must be an equally easy way of doing it in CF. > > Jeremy > > > ~~ > Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: time in CF
Now(), or DateFormat(Now(), "mm/dd/yy") are pretty common. ~Simon > Simon Horwith > Certified ColdFusion Developer > Fig Leaf Software > 1400 16th St NW, # 220 > Washington DC 20036 > 202.797.6570 (direct line) > www.figleaf.com > -Original Message- From: Jeremy Bunton [mailto:[EMAIL PROTECTED]] Sent: Monday, November 27, 2000 3:01 PM To: CF-Talk Subject: time in CF Hello, I was wondering how to display the time and date in CF. In asp it is <%date%>. I know there must be an equally easy way of doing it in CF. Jeremy ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists