Re: math on date?
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 12633
interpreted = N
texte = >Display ANOTHER time zone and date based on the server's time and date>>Solution:>=================>Add xx hours to a date and then display the results as a date.>>This is easy with time, but I can't figure out how to do it with a date.You mean you want the date to 'roll over' when the number of hours exceeds 24 greater than the date in question? I believe we can't mix dates and times into the same math context by simply adding {[date]}+{[time]}, so for now you will probably have to get creative with some [time %H] and math equations on your own.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>Display ANOTHER time zone and date based on the server's time and date>>Solution:>=================>Add xx hours to a date and then display the results as a date.>>This is easy with time, but I can't figure out how to do it with a date.You mean you want the date to 'roll over' when the number of hours exceeds 24 greater than the date in question? I believe we can't mix dates and times into the same math context by simply adding {
[date]}+{
[time]}, so for now you will probably have to get creative with some [time %H] and math equations on your own.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
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:
what run level should S90WebCatalog be at? (2003)
test mail (2004)
[WebDNA] HTTP Streaming -- impossible? (2010)
carriage returns in data (1997)
I forgot (1998)
New Zealand [OT - was Car Database] (2002)
WebCatalog Features (1997)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
Ooops-Serial Number for NT (1997)
Why is this search finding the right thing?! (2002)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
Protecting Realms (1998)
Sub Categories (2000)
[OT] Certs (2002)
PCS Frames (1997)
WebCat2b12 - New features for 1.6 users ... (1997)
Setting up shop (1997)
Help with update to 2.11 (1998)
FORMS!! (2001)
Remote administration (1998)