Re: Converting SQL Microtime to Date and Time
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 46771
interpreted = N
texte = On 1/9/03 3:15 AM, John Peacock
wrote:> Your SQL database will have a formatted date output; use that. I've never> heard > of any database using milliseconds as a basis for its internal date> representation. You should be able to divide by 1000 (to get seconds since> the > epoch), divide by 60*60*24 to get to days, and then add the number of days> from > 0 -> Jan 1, 1970 to get to a WebCat date number. But I would really use the> formatted date output from the database instead.I don't have much of an option now because this is what I was given.... I'lltry your method though.Thanks-- Jesse Williams-Proudman || CEO NineWire Digital Solutions || +1.888.873.6199 jesse@ninewire.com || http://ninewire.comMac Web Hosting & Colocation || Mac Nationwide Dialup Xserve Colocation Special, $75 / Month http://www.ninewire.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:
On 1/9/03 3:15 AM, John Peacock wrote:> Your SQL database will have a formatted date output; use that. I've never> heard > of any database using milliseconds as a basis for its internal date> representation. You should be able to divide by 1000 (to get seconds since> the > epoch), divide by 60*60*24 to get to days, and then add the number of days> from > 0 -> Jan 1, 1970 to get to a WebCat date number. But I would really use the> formatted date output from the database instead.I don't have much of an option now because this is what I was given.... I'lltry your method though.Thanks-- Jesse Williams-Proudman || CEO NineWire Digital Solutions || +1.888.873.6199 jesse@ninewire.com || http://ninewire.comMac Web Hosting & Colocation || Mac Nationwide Dialup Xserve Colocation Special, $75 / Month http://www.ninewire.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/
Jesse Williams-Proudman
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:
Help!!!! (1999)
Canada oh Canada (2004)
Summary search -- speed (1997)
lookup command (1999)
Multiple Newcarts (1996)
RE: Displaying Location (1997)
French characters in variables (2001)
Expiration of Carts (1997)
ReturnRaw context (1997)
ShowIf variables (1997)
FYI: virus alert (1996)
update on wn searching (1997)
Nesting format tags (1997)
[LOOKUP] (1997)
auto adding SKUs w/DB helper (1998)
Include a big block of text (1997)
Exclamation point (1997)
Opinion: [input] should be called [output] ... (1997)
WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997)
Help! (2000)