How to get current timestamp with CQL while using Command Line?

You can use the timeuuid functions now() and dateof() (or in later versions of Cassandra, toTimestamp()), e.g., INSERT INTO TEST (ID, NAME, VALUE, LAST_MODIFIED_DATE) VALUES (‘2’, ‘elephant’, ‘SOME_VALUE’, dateof(now())); The now function takes no arguments and generates a new unique timeuuid (at the time where the statement using it is executed). The dateOf function takes … Read more