Permalink
Browse files

Added TIMESTAMP_SECONDS AttributeType

  • Loading branch information...
richturner committed Oct 11, 2017
1 parent ba06c15 commit 22e371dcf47b0dd418337708798f7895edf92c5e
Showing with 7 additions and 1 deletion.
  1. +7 −1 model/src/main/java/org/openremote/model/attribute/AttributeType.java
@@ -77,7 +77,13 @@
new MetaItem(AssetMeta.FORMAT, Values.create("%3d %%"))
),
TIMESTAMP_MILLIS("clock-o", ValueType.NUMBER, value -> Optional.empty()),
TIMESTAMP_MILLIS("clock-o", ValueType.NUMBER, value -> Optional.empty(),
new MetaItem(FORMAT, Values.create("%d ms"))
),
TIMESTAMP_SECONDS("clock-o", ValueType.NUMBER, value -> Optional.empty(),
new MetaItem(FORMAT, Values.create("%d s"))
),
TIME_SECONDS("clock-o", ValueType.NUMBER, value -> Optional.empty(),
new MetaItem(FORMAT, Values.create("%0.1f s"))

0 comments on commit 22e371d

Please sign in to comment.