Migrating from 1.x to 4.0, from DateTime to Temporal #664
-
Hello, Could someone give some pointers how to handle net.fortuna.ical4j.model.property.DateProperty subclasses and how to work with their values? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Unfortunately the usage documentation for v4 is still quite lacking, but you can usually get a sense of how to use it from the unit tests. That said, you can assume one of three Temporal implementations to be used in DtStart/DtEnd when parsed from a file:
There is limited support for identifying the type, such as |
Beta Was this translation helpful? Give feedback.
Unfortunately the usage documentation for v4 is still quite lacking, but you can usually get a sense of how to use it from the unit tests. That said, you can assume one of three Temporal implementations to be used in DtStart/DtEnd when parsed from a file:
There is limited support for identifying the type, such as
DateProperty.isUtc()
, but the easiest way to determine the type is via an 'instanceof' check.