List of usage examples for org.joda.time LocalDateTime toString
@ToString
public String toString()
From source file:org.supercsv.cellprocessor.joda.FmtLocalDateTime.java
License:Apache License
/** * {@inheritDoc}/*w w w .j a v a 2 s.c o m*/ */ @Override protected String format(final LocalDateTime jodaType) { return jodaType.toString(); }
From source file:se.inera.statistics.hsa.adapter.LocalDateAdapter.java
License:Open Source License
/** * Converts a Joda Time LocalDateTime to an xs:datetime. *///from w w w . ja v a2s . c o m public static String printDateTime(LocalDateTime dateTime) { return dateTime.toString(); }
From source file:view.ConfigInternalFrame.java
private void BackupBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BackupBtnActionPerformed Runnable t1 = () -> {/* w w w .j a va2s.c o m*/ try { java.io.File file = new java.io.File( System.getProperty("user.home") + System.getProperty("file.separator") + ".jbiblioteca" + System.getProperty("file.separator") + "jbiblioteca_bkp.db"); Database.checkDatabase(); Database.backupDatabase(file); Runnable t2 = () -> { try { LocalDateTime ldt = new LocalDateTime(System.currentTimeMillis()); ConfigController.saveLastBackupDate("'" + ldt.toString() + "'"); backupLabel.setText(ldt.toDate().toLocaleString()); } catch (Exception e1) { } }; new Thread(t2).start(); JOptionPane.showMessageDialog(null, "O arquivo de backup foi salvo com xito."); } catch (Exception e1) { } }; new Thread(t1).start(); }