Model.metadatamarkdate#
- Model.metadatamarkdate(collection, name, value)#
Creates date metadata on the specified collection of entities.
- Parameters:
collection (Collection) – The collection containing the entities to which the metadata will be added.
name (hwString) – The name by which the metadata will be referenced.
value (int) – The date value assigned to the metadata. This is the number of seconds since the epoch (i.e., January 1st 00:00:00 1970).
Example#
Add metadata named “Date” with the current time in seconds since the epoch 153#import hm import hm.entities as ent model = hm.Model() model.metadatamarkdate( collection=hm.Collection(model, ent.Property, [1]), name="Date", value=153 )