写入时间到日期时间格式。

时间:2019-01-18 10:48:03

标签: cassandra scylla

是否可以将写入时间转换为时间戳,因为scylla可以以微秒为单位给出记录的写入时间。我想知道何时将其以人类可读的格式写入数据库。 因此,请有人建议我如何实现这一目标。

1 个答案:

答案 0 :(得分:4)

Things like that are usually done in your client in your programming language of choice. The CQL shell is a bit restricted (by nature) for those operations.

There are a host of date-related functions in the CQL shell but they are supposed to be used in timeuuid values, not in the result of a query