Name

datetime() — Decode time string into date and time

Common Usage

datetime( timestring, modifier, ... )

Description

The datetime() function takes a timestring value plus zero or more modifier values and returns a text value in the format YYYY-MM-DD HH:MM:SS. It is equivalent to the call strftime( '%Y-%m-%d %H:%M:%S', timestring, ... ).

Get Using SQLite now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.