Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图从 timeuuid 获取日期而不dateOf(id)在 cqlsh 中调用函数。那么,phpcassa 中是否有可以将 timeuuid 转换为 date 的函数?
dateOf(id)
您可以使用对象的$time属性\phpcassa\UUID来获取 unix 时间戳,如下所示:
$time
\phpcassa\UUID
$timeuuid = UUID::uuid1(); echo "timestamp: $timeuuid->time";
从那里很容易制作其他日期和时间对象。