MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / Timestamp

Method Timestamp

src/main/java/com/amazon/ion/Timestamp.java:460–463  ·  view source on GitHub ↗

Creates a new Timestamp, precise to the year, with unknown local offset. This is equivalent to the corresponding Ion value YYYYT.

(int zyear)

Source from the content-addressed store, hash-verified

458 * This is equivalent to the corresponding Ion value {@code YYYYT}.
459 */
460 private Timestamp(int zyear)
461 {
462 this(Precision.YEAR, zyear, NO_MONTH, NO_DAY, NO_HOURS, NO_MINUTES, NO_SECONDS, NO_FRACTIONAL_SECONDS, UNKNOWN_OFFSET, APPLY_OFFSET_NO, CHECK_FRACTION_NO);
463 }
464
465 /**
466 * Creates a new Timestamp, precise to the month, with unknown local offset.

Callers

nothing calls this directly

Calls 15

checkFractionMethod · 0.95
checkAndCastSecondMethod · 0.95
checkAndCastMinuteMethod · 0.95
checkAndCastHourMethod · 0.95
checkAndCastMonthMethod · 0.95
checkAndCastYearMethod · 0.95
checkAndCastDayMethod · 0.95
apply_offsetMethod · 0.95
isIntegralZeroMethod · 0.95

Tested by

no test coverage detected