Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 3rd, 2003, 09:59 AM
Ducani
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Date Arithmetic With MySQL

Date Arithmetic With MySQL

2003-07-03 - When dealing with date and time values, one of the more common (and complex) tasks involves performing addition and subtraction operations on these values. However, with MySQL's powerful date and time API taking care of all the minor adjustments for you, manipulating date and time data is no longer the tedious and time-consuming process it used to be. Find out why, inside.

Please discuss this article in this thread You can read the article here .

Reply With Quote
  #2  
Old July 6th, 2003, 02:53 AM
Philip Olson Philip Olson is offline
loves google.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2001
Location: Pacific Northwest
Posts: 645 Philip Olson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Also consider the MySQL Manual:
http://www.mysql.com/doc/en/Date_and_time_types.html
http://www.mysql.com/doc/en/Date_an..._functions.html

Also keep in mind the SQL "AS" statement because you'll most likely be using it. For example:

SELECT foo, UNIX_TIMESTAMP(somedatecolumn) AS utimestamp FROM sometable

This way you can access it by the name utimestamp.
__________________
.sig
* http://www.php.net/manual/

Last edited by Philip Olson : July 6th, 2003 at 02:58 AM.

Reply With Quote
  #3  
Old July 7th, 2003, 08:14 AM
melonfire melonfire is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 45 melonfire User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
you can use AS to alias table names as well

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Date Arithmetic With MySQL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT