用当前时间作为模型时间开始模拟

发布于 2025-01-30 18:26:11 字数 88 浏览 2 评论 0原文

我有一个模型,需要显示与当前的日期和时间相干。 当我尝试设置仿真参数时,我必须在每次开始时间到固定值时指定。 是否有任何方法可以通过代码更改开始时间? 多谢, p

I have a model where I need to display the date and time coherent with the current ones.
When I try to set the simulation parameters I have to specify each time the start time to a fixed value.
Is there any way to change the start time, even via code?
Thanks a lot,
P

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

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

发布评论

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

评论(1

天气好吗我好吗 2025-02-06 18:26:11

我在这里找到了答案:
从数据库导入的模型启动时间

以检索本地时间i i二手:

'导入java.time.localdateTime;
LocalDateTime NOW = LocalDateTime.Now();'

I found my answer here:
Model start time imported from database

to retrieve the local time I used:

'import java.time.LocalDateTime;
LocalDateTime now = LocalDateTime.now();'

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