Daml.Finance.Data.Time.DateClock¶
Templates¶
template DateClock
A
DateClockis a template used to keep track of the current date. It implements theTimerule interface to be able to advance and rewind business time. It also implements theTimeObservableinterface. Specifically, each dateDis mapped toD 00:00:00 UTC. If your use-case involves working across multiple time zones, you may need to define multipleDateClocktemplates with specific time conversions.Signatory: providers
Field Type Description providers Parties The clock’s providers. date Unit The clock’s date. id Id The clock’s identifier. description Text The clock’s description. observers Parties Observers.
Functions¶
- dateToDateClockTime
-
Maps a
DatetoTimeusing the rule in theDateClock.