sql current timestamp in seconds code example Example: select milliseconds mysql SELECT UNIX_TIMESTAMP();