Re: calculating time

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 46478
interpreted = N
texte = Thanks for the info it worked great. I am using a modified version of web builder, do you have any suggestions how I can implement a cart number verification, It would renumber a persons cart while they are browsing the store if an order had been placed and is already written to the orders.db I though I could do this in the invoice.tpl or thanks.tpl page when the order is being written that way it only has to verify the number once at the end of the session. I am having this problem with dual cart numbers because prople are bookmarking pages with a cart number in the address.Any ideas how I can go about verifying the cart number to the orders.db and if one is in existance it will convert the number without loosing the cart info?bob> From: Gary Krockover > Reply-To: (WebCatalog Talk) > Date: Wed, 25 Dec 2002 09:42:40 -0600 > To: (WebCatalog Talk) > Subject: Re: calculating time > > I was waiting for the kids to finally go to bed so that Santa could make > his appearance :) > > GK > > >> wow! i was not expecting a response so soon. Christmas is still going on, > I >> just could not stop thinking about this problem that I was having and >> obviously I am a workaholic. (so what's your excuse) Thanks so much. >> >>> From: Gary Krockover >>> Reply-To: (WebCatalog Talk) >>> Date: Wed, 25 Dec 2002 00:19:35 -0600 >>> To: (WebCatalog Talk) >>> Subject: Re: calculating time >>> >>> What, working on Christmas Eve? Or is Christmas over where ever you're > at? >>> :) >>> >>> You could start with something as simple as this: >>> >>> [text show=f]starttime=11:00:05[/text] >>> [text show=f]endtime=[TIME format=%H:%M:%S][/text] >>> [text show=f]wastedtime=[math > time]{[endtime]}-{[starttime]}[/math][/text] >>> Time spent: [wastedtime] >>> >>> Where [starttime] and [endtime] could be variables based on user input. >>> Make sure that the server is set to return time in 24 hour format or >>> manually override it with the format as above. And add in [date] if the >>> time is spanning a number of days. >>> >>> GK >>> >>> >>> >>>> does anyone have a calculation for taking a start time and end time to >>>> figure out what the total amount of time it. for instance. >>>> >>>> 11:00am - 12:30pm = 1.5 hours >>> > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Calculating times in a different zone ... (Kenneth Grome 2003)
  2. Re: Calculating times in a different zone ... (Michael Davis 2003)
  3. Calculating times in a different zone ... (Kenneth Grome 2003)
  4. Re: calculating time (Jesse Williams-Proudman 2002)
  5. Re: calculating time (catalogs 2002)
  6. Re: calculating time (Jesse Williams-Proudman 2002)
  7. Re: calculating time (catalogs 2002)
  8. Re: calculating time (Gary Krockover 2002)
  9. Re: calculating time (catalogs 2002)
  10. Re: calculating time (Gary Krockover 2002)
  11. calculating time (catalogs 2002)
Thanks for the info it worked great. I am using a modified version of web builder, do you have any suggestions how I can implement a cart number verification, It would renumber a persons cart while they are browsing the store if an order had been placed and is already written to the orders.db I though I could do this in the invoice.tpl or thanks.tpl page when the order is being written that way it only has to verify the number once at the end of the session. I am having this problem with dual cart numbers because prople are bookmarking pages with a cart number in the address.Any ideas how I can go about verifying the cart number to the orders.db and if one is in existance it will convert the number without loosing the cart info?bob> From: Gary Krockover > Reply-To: (WebCatalog Talk) > Date: Wed, 25 Dec 2002 09:42:40 -0600 > To: (WebCatalog Talk) > Subject: Re: calculating time > > I was waiting for the kids to finally go to bed so that Santa could make > his appearance :) > > GK > > >> wow! i was not expecting a response so soon. Christmas is still going on, > I >> just could not stop thinking about this problem that I was having and >> obviously I am a workaholic. (so what's your excuse) Thanks so much. >> >>> From: Gary Krockover >>> Reply-To: (WebCatalog Talk) >>> Date: Wed, 25 Dec 2002 00:19:35 -0600 >>> To: (WebCatalog Talk) >>> Subject: Re: calculating time >>> >>> What, working on Christmas Eve? Or is Christmas over where ever you're > at? >>> :) >>> >>> You could start with something as simple as this: >>> >>> [text show=f]starttime=11:00:05[/text] >>> [text show=f]endtime=[TIME format=%H:%M:%S][/text] >>> [text show=f]wastedtime=[math > time]{[endtime]}-{[starttime]}[/math][/text] >>> Time spent: [wastedtime] >>> >>> Where [starttime] and [endtime] could be variables based on user input. >>> Make sure that the server is set to return time in 24 hour format or >>> manually override it with the format as above. And add in [date] if the >>> time is spanning a number of days. >>> >>> GK >>> >>> >>> >>>> does anyone have a calculation for taking a start time and end time to >>>> figure out what the total amount of time it. for instance. >>>> >>>> 11:00am - 12:30pm = 1.5 hours >>> > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ catalogs

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCat2b15MacPlugin - showing [math] (1997) Robert Minor duplicate mail (1997) International Orders (1998) [WebDNA] [append] does not add the newline char at the end of the new record?! (which causes subsequent [search] to fail.) (2009) How fast is your server? (2002) Mass Mail (2000) RE: Webcat 2.0.1b1 bug with IE 3.01/4.0p1 (1997) WebCatalog for guestbook ? (1997) Thanks Grant (1997) Enhancement Request for WebCatalog-NT (1996) [protect] and identification (2008) SHOWIF [var_with_backslash]^[value] (2002) WebCat2: Items xx to xx shown, etc. (1997) attachment (2000) formvariables question (2000) PSC recommends what date format yr 2000??? (1997) Zipcodes (1998) WC2.0 Memory Requirements (1997) duplicate cart numbers (2002) Unix webcat perms & multiple versions of same db in cacheissue (2000)