Tabnine Logo
AbstractUserDateFormatter.getLongFormat
Code IndexAdd Tabnine to your IDE (free)

How to use
getLongFormat
method
in
ch.cyberduck.core.date.AbstractUserDateFormatter

Best Java code snippets using ch.cyberduck.core.date.AbstractUserDateFormatter.getLongFormat (Showing top 7 results out of 315)

origin: iterate-ch/cyberduck

  public String getLongFormat(long milliseconds) {
    return this.getLongFormat(milliseconds, true);
  }
}
origin: iterate-ch/cyberduck

@Override
public String getComment(final Host host) {
  Date timestamp = host.getTimestamp();
  if(null != timestamp) {
    // Set comment to timestamp when server was last accessed
    return UserDateFormatterFactory.get().getLongFormat(timestamp.getTime());
  }
  // There might be files from previous versions that have no timestamp yet.
  return null;
}
origin: iterate-ch/cyberduck

public void setMessage(final String message) {
  final String text;
  if(StringUtils.isBlank(message)) {
    // Do not display any progress text when transfer is stopped
    final Date timestamp = transfer.getTimestamp();
    if(null != timestamp) {
      text = UserDateFormatterFactory.get().getLongFormat(timestamp.getTime(), false);
    }
    else {
      text = StringUtils.EMPTY;
    }
  }
  else {
    text = message;
  }
  messageField.setAttributedStringValue(NSAttributedString.attributedStringWithAttributes(
    text, TRUNCATE_MIDDLE_ATTRIBUTES));
}
origin: iterate-ch/cyberduck

protected void add(final String fullname, final String hostname, final int port,
          final String user, final String password, final String path) {
  final Protocol protocol = this.getProtocol(fullname);
  if(null == protocol) {
    log.warn(String.format("Unknown service type for %s", fullname));
    return;
  }
  final Host host = new Host(protocol, hostname, port);
  host.getCredentials().setUsername(user);
  host.getCredentials().setPassword(password);
  if(StringUtils.isNotBlank(path)) {
    host.setDefaultPath(PathNormalizer.normalize(path));
  }
  host.setComment(UserDateFormatterFactory.get().getLongFormat(new Date().getTime()));
  this.add(fullname, host);
}
origin: iterate-ch/cyberduck

this.updateField(modifiedField, UserDateFormatterFactory.get().getLongFormat(
  file.attributes().getModificationDate()),
  TRUNCATE_MIDDLE_ATTRIBUTES
this.updateField(createdField, UserDateFormatterFactory.get().getLongFormat(
  file.attributes().getCreationDate()),
  TRUNCATE_MIDDLE_ATTRIBUTES
origin: iterate-ch/cyberduck

if(null != timestamp) {
  title.appendAttributedString(NSAttributedString.attributedStringWithAttributes(
    UserDateFormatterFactory.get().getLongFormat(timestamp.getTime()), BundleController.MENU_HELP_FONT_ATTRIBUTES));
origin: iterate-ch/cyberduck

  UserDateFormatterFactory.get().getLongFormat(item.local.attributes().getModificationDate()),
  TRUNCATE_MIDDLE_ATTRIBUTES));
UserDateFormatterFactory.get().getLongFormat(status.getRemote().getModificationDate()),
TRUNCATE_MIDDLE_ATTRIBUTES));
ch.cyberduck.core.dateAbstractUserDateFormattergetLongFormat

Popular methods of AbstractUserDateFormatter

  • getMediumFormat
  • getShortFormat

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collectors (java.util.stream)
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now