Skip to content

[Feature] support unix_timestamp() with microseconds #24382

Description

@zclllyybb

Search before asking

  • I had searched in the issues and found no similar issues.

Description

mysql:

select unix_timestamp(cast('2020-12-12 12:12:12.123'as datetime(3)));
unix_timestamp(cast('2020-12-12 12:12:12.123'as datetime(3)))
--1607746332.123

ours:

mysql>select unix_timestamp(cast('2020-12-12 12:12:12.123'as datetimev2(3)));
+------------+
| 1607746332 |
+------------+
| 1607746332 |
+------------+1 row inset (0.10 sec)

so we need a new version of unix_timestamp which could calculate the microseconds.

Use case

No response

Related issues

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions