用当前时间作为模型时间开始模拟
我有一个模型,需要显示与当前的日期和时间相干。 当我尝试设置仿真参数时,我必须在每次开始时间到固定值时指定。 是否有任何方法可以通过代码更改开始时间? 多谢, 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在这里找到了答案:
从数据库导入的模型启动时间
以检索本地时间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();'