如何在 Google Annotatedtimeline 中显示毫秒?

发布于 2024-07-27 13:10:10 字数 84 浏览 5 评论 0原文

您能否帮助我使用 Google Visualization API 的 dateFormat 说明符,以便我可以显示毫秒。

提前致谢!

Can you please help me with the dateFormat specifier for Google Visualisation APIs so that I can display milliseconds.

Thanks in advance!

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

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

发布评论

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

评论(1

通知家属抬走 2024-08-03 13:10:10

要在 javascript 中设置 Date 实例的毫秒,请使用 setMilliseconds() 方法:

x = new Date(2009, 7, 6, 20, 10, 10);
x.setMilliseconds(10);

不过,我怀疑 Google Annotated Timeline 会显示以毫秒为单位的值。

To set the milliseconds of a Date instance in javascript, use the setMilliseconds() method:

x = new Date(2009, 7, 6, 20, 10, 10);
x.setMilliseconds(10);

I suspect that Google Annotated Timeline will show values in milliseconds, though.

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