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.
kdb/q で Unix タイムスタンプを取得する組み込みの方法はありますか?
何かのようなもの
`float$.z.p
理想的です。そうしないと、1970 年 1 月 1 日からの秒数をカウントするという、より骨の折れる実装に頼らざるを得なくなります。
q)`long$.z.p 458558447196132000 q)`long$1970.01.01D00:00 -946684800000000000
したがって、2000.01.01 から nanos を取得できます。そこから、2000.01.01 ベースのエポックと 1970.01.01 ベースのエポックの間で変換するのは簡単な計算です。