什么是小数秒?

发布于 2024-12-27 21:25:55 字数 422 浏览 1 评论 0原文

我试图理解小数秒是什么。我在这里找到了一个小数秒

double uhd::time_spec_t::get_frac_secs  (   void        )    const
     Get the fractional part of the time in seconds.

Returns:
     the fractional seconds

小数到底是什么第二个表示为?有人可以给我一个示例值以及如何将其转换为秒吗?

I am trying to understand what a fractional second is. I found a fractional second,here:

double uhd::time_spec_t::get_frac_secs  (   void        )    const
     Get the fractional part of the time in seconds.

Returns:
     the fractional seconds

What exactly is a fractional second represented as a double? Can someone give me an example value and how that translates in to seconds?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

为你拒绝所有暧昧 2025-01-03 21:25:55

小数秒是时间中非整数的部分。因此,如果您的时间类似于 12345678.9,则秒的小数部分为 0.9

Fractional second is the part of the time that is not an integer. So if you have a time like 12345678.9 the fractional second is 0.9

○愚か者の日 2025-01-03 21:25:55

这里的例子可以帮助您理解秒的小数部分是什么:

TIMESTAMP{(秒小数)}

可选参数指定秒的小数部分。如果未指定该参数,则秒小数部分默认为 6。

以下示例显示了多个时间戳,具有不同的小数秒数。

DCL-S TS0 TIMESTAMP(0);    // YYYY-MM-DD-hh-mm-ss
DCL-S TS1 TIMESTAMP(1);    // YYYY-MM-DD-hh-mm-ss.f
DCL-S TS6A TIMESTAMP;      // YYYY-MM-DD-hh-mm-ss.ffffff
DCL-S TS6B TIMESTAMP(6);   // YYYY-MM-DD-hh-mm-ss.ffffff
DCL-S TS12 TIMESTAMP(12);  // YYYY-MM-DD-hh-mm-ss.ffffffffffff

来自 IBM 知识中心 - TIMESTAMP{(小数秒) )}

The example here may help you to understand what the fractional second is:

TIMESTAMP{(fractional-seconds)}

The optional parameter specifies the number of fractional seconds. If the parameter is not specified, the number of fractional seconds defaults to 6.

The following example shows several timestamps, with different numbers of fractional seconds.

DCL-S TS0 TIMESTAMP(0);    // YYYY-MM-DD-hh-mm-ss
DCL-S TS1 TIMESTAMP(1);    // YYYY-MM-DD-hh-mm-ss.f
DCL-S TS6A TIMESTAMP;      // YYYY-MM-DD-hh-mm-ss.ffffff
DCL-S TS6B TIMESTAMP(6);   // YYYY-MM-DD-hh-mm-ss.ffffff
DCL-S TS12 TIMESTAMP(12);  // YYYY-MM-DD-hh-mm-ss.ffffffffffff

via IBM Knowledge Center - TIMESTAMP{(fractional-seconds)}

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文