Date and Time Functions
916
Name
Description
GET_FORMAT()
[924]
Return a date format string
HOUR()
[924]
Extract the hour
LAST_DAY
[925]
Return the last day of the month for the argument
LOCALTIME()
,
LOCALTIME
[925]
Synonym for NOW()
LOCALTIMESTAMP
,
LOCALTIMESTAMP()
[925]
Synonym for NOW()
MAKEDATE()
[925]
Create a date from the year and day of year
MAKETIME
[925]
MAKETIME()
MICROSECOND()
[925]
Return the microseconds from argument
MINUTE()
[925]
Return the minute from the argument
MONTH()
[925]
Return the month from the date passed
MONTHNAME()
[926]
Return the name of the month
NOW()
[926]
Return the current date and time
PERIOD_ADD()
[926]
Add a period to a year-month
PERIOD_DIFF()
[926]
Return the number of months between periods
QUARTER()
[927]
Return the quarter from a date argument
SEC_TO_TIME()
[927]
Converts seconds to 'HH:MM:SS' format
SECOND()
[927]
Return the second (0-59)
STR_TO_DATE()
[927]
Convert a string to a date
SUBDATE()
[928]
A synonym for DATE_SUB() when invoked with three
arguments
SUBTIME()
[928]
Subtract times
SYSDATE()
[928]
Return the time at which the function executes
TIME_FORMAT()
[930]
Format as time
TIME_TO_SEC()
[930]
Return the argument converted to seconds
TIME()
[929]
Extract the time portion of the expression passed
TIMEDIFF()
[929]
Subtract time
TIMESTAMP()
[929]
With a single argument, this function returns the date or
datetime expression; with two arguments, the sum of the
arguments
TIMESTAMPADD()
[929]
Add an interval to a datetime expression
TIMESTAMPDIFF()
[930]
Subtract an interval from a datetime expression
TO_DAYS()
[930]
Return the date argument converted to days
UNIX_TIMESTAMP()
[931]
Return a UNIX timestamp
UTC_DATE()
[932]
Return the current UTC date
UTC_TIME()
[932]
Return the current UTC time
UTC_TIMESTAMP()
[932]
Return the current UTC date and time
WEEK()
[932]
Return the week number
WEEKDAY()
[933]
Return the weekday index
WEEKOFYEAR()
[933]
Return the calendar week of the date (0-53)
YEAR()
[933]
Return the year
YEARWEEK()
[934]
Return the year and week
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...