Example usage for org.apache.http.impl.cookie DateUtils PATTERN_ASCTIME

List of usage examples for org.apache.http.impl.cookie DateUtils PATTERN_ASCTIME

Introduction

In this page you can find the example usage for org.apache.http.impl.cookie DateUtils PATTERN_ASCTIME.

Prototype

String PATTERN_ASCTIME

To view the source code for org.apache.http.impl.cookie DateUtils PATTERN_ASCTIME.

Click Source Link

Document

Date format pattern used to parse HTTP date headers in ANSI C <code>asctime()</code> format.

Usage

From source file:com.orange.labs.sample.entry.EntryRow.java

public void setExtraInfo(final OrangeCloudAPI.Entry entry) {

    // Add Date//from   ww  w  .j  a  v  a 2s.  c  o m
    String creationDate = DateUtils.formatDate(entry.creationDate, DateUtils.PATTERN_ASCTIME);
    mDateView.setText(creationDate);

    // Add size
    mExtraView.setText(entry.size);

    // ask thumbnail
    mApi.thumbnail(entry, new OrangeListener.Success<Bitmap>() {
        @Override
        public void onResponse(Bitmap response) {
            if (mEntry.equals(entry)) {
                mImageView.setImageBitmap(response);
            }
        }
    }, new OrangeListener.Error() {
        @Override
        public void onErrorResponse(OrangeAPIException error) {
            // do nothing !
        }
    });

}