Example usage for com.fasterxml.jackson.databind.util ISO8601Utils format

List of usage examples for com.fasterxml.jackson.databind.util ISO8601Utils format

Introduction

In this page you can find the example usage for com.fasterxml.jackson.databind.util ISO8601Utils format.

Prototype

public static String format(Date date, boolean millis, TimeZone tz) 

Source Link

Document

Format date into yyyy-MM-ddThh:mm:ss[.sss][Z|[+-]hh:mm]

Usage

From source file:org.noorganization.instalistsynch.controller.synch.impl.ProductSynch.java

@Override
public void synchNetworkToLocal(int _groupId, Date _sinceTime) {
    String authToken = mSessionController.getToken(_groupId);
    if (authToken == null) {
        return;/*  w  w  w.j  a  va2s . com*/
    }
    mProductetworkController.getList(new GetListResponse(_groupId, _sinceTime), _groupId,
            ISO8601Utils.format(_sinceTime, false, TimeZone.getTimeZone("GMT+0000")).concat("+0000"),
            authToken);
}

From source file:org.noorganization.instalistsynch.controller.synch.impl.ListSynch.java

@Override
public void synchNetworkToLocal(int _groupId, Date _sinceTime) {
    String authToken = mSessionController.getToken(_groupId);
    if (authToken == null) {
        return;/*from w w  w.  j  av  a2 s. c  o  m*/
    }
    mListInfoNetworkController.getList(new GetListResponse(_groupId, _sinceTime), _groupId,
            ISO8601Utils.format(_sinceTime, false, TimeZone.getTimeZone("GMT+0000")).concat("+0000"),
            authToken);
}

From source file:org.noorganization.instalistsynch.controller.synch.impl.CategorySynch.java

@Override
public void synchNetworkToLocal(int _groupId, Date _sinceTime) {
    String authToken = mSessionController.getToken(_groupId);
    if (authToken == null) {
        return;/*from  ww w. j  a v  a  2s.c  om*/
    }
    mCategoryInfoNetworkController.getList(new GetListResponse(_groupId, _sinceTime), _groupId,
            ISO8601Utils.format(_sinceTime, false, TimeZone.getTimeZone("GMT+0000")).concat("+0000"),
            authToken);
}

From source file:org.noorganization.instalistsynch.controller.synch.impl.IngredientSynch.java

@Override
public void synchNetworkToLocal(int _groupId, Date _sinceTime) {
    String authToken = mSessionController.getToken(_groupId);
    if (authToken == null) {
        return;// w  w  w  .  j  av  a2 s .c om
    }
    mIngredientInfoNetworkController.getList(new GetListResponse(_groupId, _sinceTime), _groupId,
            ISO8601Utils.format(_sinceTime, false, TimeZone.getTimeZone("GMT+0000")).concat("+0000"),
            authToken);
}

From source file:org.noorganization.instalistsynch.controller.synch.impl.ListEntrySynch.java

@Override
public void synchNetworkToLocal(int _groupId, Date _sinceTime) {
    String authToken = mSessionController.getToken(_groupId);
    if (authToken == null) {
        return;//from  w  w  w.  java2s  .c  o m
    }
    mListEntryInfoNetworkController.getList(new GetListResponse(_groupId, _sinceTime), _groupId,
            ISO8601Utils.format(_sinceTime, false, TimeZone.getTimeZone("GMT+0000")).concat("+0000"),
            authToken);
}