@Nonnull public LocalDateTime getBuildDateTime () { return PDTFactory.createLocalDateTime (getAsLong ("build.datetime.millis", 0)); }
@Nullable public static LocalDateTime getCellValueLocalDateTime (@Nullable final Cell aCell) { final Date aDate = getCellValueJavaDate (aCell); return aDate == null ? null : PDTFactory.createLocalDateTime (aDate); }
/** * Return a timestamp string that contains the elapsed time period. * * @param time * the starting time of the period * @return the timestamp string */ protected String timestamp (final long time) { // Current time followed by elapsed time as (hh:mm:ss). final LocalDateTime aLDT = PDTFactory.getCurrentLocalDateTime (); final LocalDateTime aOld = PDTFactory.createLocalDateTime (time); return aLDT.toLocalTime ().toString () + " (" + Duration.between (aOld, aLDT).toString () + ")"; } }
@Nonnull final Locale aDisplayLocale) final LocalDateTime aNotBefore = PDTFactory.createLocalDateTime (aX509Cert.getNotBefore ()); final LocalDateTime aNotAfter = PDTFactory.createLocalDateTime (aX509Cert.getNotAfter ()); final PublicKey aPublicKey = aX509Cert.getPublicKey ();
@Nonnull final Locale aDisplayLocale) final LocalDateTime aNotBefore = PDTFactory.createLocalDateTime (aX509Cert.getNotBefore ()); final LocalDateTime aNotAfter = PDTFactory.createLocalDateTime (aX509Cert.getNotAfter ()); final PublicKey aPublicKey = aX509Cert.getPublicKey ();
aUL2.addItem (EText.MSG_TRIGGER_KEY.getDisplayText (aDisplayLocale) + aTrigger.getKey ().toString ()); aUL2.addItem (EText.MSG_START_TIME.getDisplayText (aDisplayLocale) + PDTToString.getAsString (PDTFactory.createLocalDateTime (aTrigger.getStartTime ()), aDisplayLocale)); if (aTrigger.getEndTime () != null) aUL2.addItem (EText.MSG_END_TIME.getDisplayText (aDisplayLocale) + PDTToString.getAsString (PDTFactory.createLocalDateTime (aTrigger.getEndTime ()), aDisplayLocale)); aUL2.addItem (EText.MSG_PREVIOUS_FIRE_TIME.getDisplayText (aDisplayLocale) + PDTToString.getAsString (PDTFactory.createLocalDateTime (aTrigger.getPreviousFireTime ()), aDisplayLocale)); aUL2.addItem (EText.MSG_NEXT_FIRE_TIME.getDisplayText (aDisplayLocale) + PDTToString.getAsString (PDTFactory.createLocalDateTime (aTrigger.getNextFireTime ()), aDisplayLocale));
aUL2.addItem (EText.MSG_TRIGGER_KEY.getDisplayText (aDisplayLocale) + aTrigger.getKey ().toString ()); aUL2.addItem (EText.MSG_START_TIME.getDisplayText (aDisplayLocale) + PDTToString.getAsString (PDTFactory.createLocalDateTime (aTrigger.getStartTime ()), aDisplayLocale)); if (aTrigger.getEndTime () != null) aUL2.addItem (EText.MSG_END_TIME.getDisplayText (aDisplayLocale) + PDTToString.getAsString (PDTFactory.createLocalDateTime (aTrigger.getEndTime ()), aDisplayLocale)); aUL2.addItem (EText.MSG_PREVIOUS_FIRE_TIME.getDisplayText (aDisplayLocale) + PDTToString.getAsString (PDTFactory.createLocalDateTime (aTrigger.getPreviousFireTime ()), aDisplayLocale)); aUL2.addItem (EText.MSG_NEXT_FIRE_TIME.getDisplayText (aDisplayLocale) + PDTToString.getAsString (PDTFactory.createLocalDateTime (aTrigger.getNextFireTime ()), aDisplayLocale));
aStatusData.add ("smp.certificate.subject", aX509Cert.getSubjectX500Principal ().getName ()); final LocalDateTime aNotAfter = PDTFactory.createLocalDateTime (aX509Cert.getNotAfter ()); final boolean bIsExpired = aNow.isAfter (aNotAfter); aStatusData.add ("smp.certificate.expired", bIsExpired);
final LocalDateTime aCreationDT = PDTFactory.createLocalDateTime (aWebScope.getSession ().getCreationTime ()); final LocalDateTime aLastAccessDT = PDTFactory.createLocalDateTime (aWebScope.getSession () .getLastAccessedTime ());
aStatusData.add ("smp.certificate.subject", aX509Cert.getSubjectX500Principal ().getName ()); final LocalDateTime aNotAfter = PDTFactory.createLocalDateTime (aX509Cert.getNotAfter ()); final boolean bIsExpired = aNow.isAfter (aNotAfter); aStatusData.add ("smp.certificate.expired", bIsExpired);
aRow.addCell (Integer.toString (aSessionScope.attrs ().size ())); if (aWebScope != null) aRow.addCell (PDTToString.getAsString (PDTFactory.createLocalDateTime (aWebScope.getSession () .getLastAccessedTime ()), aDisplayLocale));
aRow.addCell (Integer.toString (aSessionScope.attrs ().size ())); if (aWebScope != null) aRow.addCell (PDTToString.getAsString (PDTFactory.createLocalDateTime (aWebScope.getSession () .getLastAccessedTime ()), aDisplayLocale));
final LocalDateTime aCreationDT = PDTFactory.createLocalDateTime (aWebScope.getSession ().getCreationTime ()); final LocalDateTime aLastAccessDT = PDTFactory.createLocalDateTime (aWebScope.getSession () .getLastAccessedTime ());
PDTToString.getAsString (PDTFactory.createLocalDateTime (aEntry.getNotAfter ()), aDisplayLocale) + "."));
else final LocalDateTime aNotBefore = PDTFactory.createLocalDateTime (aX509Cert.getNotBefore ()); if (aNotBefore.isAfter (aNowDT)) aULPerEndpoint.addItem (_createError ("The endpoint certificate is not yet active. It will be active from " + ".")); final LocalDateTime aNotAfter = PDTFactory.createLocalDateTime (aX509Cert.getNotAfter ()); if (aNotAfter.isBefore (aNowDT)) aULPerEndpoint.addItem (_createError ("The endpoint certificate is already expired. It was valid until " +
else final LocalDateTime aNotBefore = PDTFactory.createLocalDateTime (aX509Cert.getNotBefore ()); if (aNotBefore.isAfter (aNowDT)) aULPerEndpoint.addItem (_createError ("The endpoint certificate is not yet active. It will be active from " + ".")); final LocalDateTime aNotAfter = PDTFactory.createLocalDateTime (aX509Cert.getNotAfter ()); if (aNotAfter.isBefore (aNowDT)) aULPerEndpoint.addItem (_createError ("The endpoint certificate is already expired. It was valid until " +