SQL Date and time Function
The HH is the hour of the day, from 0 to 23.
The MM is the minute of the hour, from 0 to 59.
The SS is the seconds within a minute, from 0 to 59.
This returns the seconds, SS, of the timestamp column!
For strftime(__, timestamp):
%Yreturns the year (YYYY)%mreturns the month (01-12)%dreturns the day of the month (1-31)%Hreturns 24-hour clock (00-23)%Mreturns the minute (00-59)%Sreturns the seconds (00-59)
if sign_up_at format is YYYY-MM-DD HH:MM:SS.
Comments
Post a Comment