Skip to content

Changes

Summary

  1. Make Duration constructors unambiguous (details)
Commit e5477009808b5801560402c8652f3c8486e3c6d5 by marco.kessler
Make Duration constructors unambiguous

This requires fromSeconds to be the new default.
And it's not possible anymore to create Durations by specifying e.g. hour only.
But unless you write tests or doc, this is not really needed I would say.
The file was modified Modelica/Utilities/Time.mo (diff)
The file was modified ModelicaTest/Utilities.mo (diff)

Summary

  1. Make Duration constructors unambiguous (details)
Commit e5477009808b5801560402c8652f3c8486e3c6d5 by marco.kessler
Make Duration constructors unambiguous

This requires fromSeconds to be the new default.
And it's not possible anymore to create Durations by specifying e.g. hour only.
But unless you write tests or doc, this is not really needed I would say.
The file was modified Modelica/Utilities/Time.mo (diff)
The file was modified ModelicaTest/Utilities.mo (diff)