waterml/src/main/java/ucar/nc2/ogc/om/NcTimeObjectPropertyType.java
public static TimeObjectPropertyType initPhenomenonTime(
            TimeObjectPropertyType phenomenonTime, StationTimeSeriesFeature stationFeat) throws IOException {
        // gml:TimePeriod
        TimePeriodDocument timePeriodDoc = TimePeriodDocument.Factory.newInstance();
        NcTimePeriodType.initTimePeriod(timePeriodDoc.addNewTimePeriod(), stationFeat);
        phenomenonTime.set(timePeriodDoc);

        return phenomenonTime;
    }
public static TimeObjectPropertyType initPhenomenonTime(
            TimeObjectPropertyType phenomenonTime, StationTimeSeriesFeature stationFeat) throws IOException {
        // gml:TimePeriod
        TimePeriodDocument timePeriodDoc = TimePeriodDocument.Factory.newInstance();
        NcTimePeriodType.initTimePeriod(timePeriodDoc.addNewTimePeriod(), stationFeat);
        phenomenonTime.set(timePeriodDoc);

        return phenomenonTime;
    }
wml2:Collection/wml2:observationMember/om:OM_Observation/om:phenomenonTime