Returns the formatted datetime the tokens where last synchronized if it exists, otherwise null.

@return last sync date if it exists, null otherwise
171290
private String getLastSyncDate(Integer subscriptionId) {
        String lastSyncDate = null;

        TokenSyncDate tokenSyncDate = ocpiRepository.getTokenSyncDate(subscriptionId);
        if (tokenSyncDate != null) {
            lastSyncDate = AppConfig.DATE_FORMAT.format(tokenSyncDate.getSyncDate());
        }

        return lastSyncDate;
    }
679642
public static DateFormat getInstance() {
        if (instance == null) {
            synchronized (instanceLock) {
                if (instance == null) {
                    instance = new ResqueDateFormatThreadLocal();
                }
            }
        }
        return instance.get();
    }
911012
public Moment getLastConnectionTime() {

        final ConnectionResult cr = this.result;
        return ((cr == null) ? null : cr.lastMoment);

    }
1224771
public String getAsText() {
        DateTime value = (DateTime) getValue();
        return (value != null ? value.toString(this.formatter) : "");
    }
823425
public Date getTimeAfter(Date afterTime) {
    Calendar date = new GregorianCalendar();
    date.setTime(afterTime);

    Calendar after = getTimeAfter(date);

    return after == null ? null : after.getTime();
  }
210998
protected String getTimestamp() {
        final Date date = new Date(System.currentTimeMillis());
        final DateFormat formatter = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT);
        return formatter.format(date);
    }
148146
public String getTimestampString()
    {
        if ( timestamp == null )
        {
            return null;
        }
        else
        {
            SimpleDateFormat fmt = new SimpleDateFormat( "yyyyMMdd.HHmmss" );
            fmt.setTimeZone( TimeZone.getTimeZone( "GMT" ) );
            return fmt.format( new Date( timestamp.longValue() ) );
        }
    }
1310602
public Date getExpirationDateTime() {
        if (getExpirationDate() == null) {
            return null;
        }

        Calendar cal = Calendar.getInstance();
        cal.setTime(getExpirationDate());
        cal.set(Calendar.HOUR, getExpirationHour());
        cal.set(Calendar.MINUTE, getExpirationMinute());
        cal.set(Calendar.SECOND, 0);
        cal.set(Calendar.MILLISECOND, 0);
        cal.set(Calendar.AM_PM, getExpirationAmPm());
        return cal.getTime();
    }
772082
public com.google.api.ads.admanager.axis.v201811.CanoeSyncResult getLastSyncResult() {
        return lastSyncResult;
    }
1047146
public alluxio.grpc.SyncPointStatus getSyncStatus() {
    alluxio.grpc.SyncPointStatus result = alluxio.grpc.SyncPointStatus.valueOf(syncStatus_);
    return result == null ? alluxio.grpc.SyncPointStatus.Not_Initially_Synced : result;
  }
1257920
public Date getLastModificationDate() {
		if (this.year == 0 || this.month == 0 || this.day == 0){
			return null;
		}
		try {
			Calendar calendar = Calendar.getInstance();
			calendar.set(this.year, this.month, this.day, 0, 0, 0);
			calendar.set(Calendar.MILLISECOND, 0);
			return calendar.getTime();
		}
		catch (Exception e) {
			return null;
		}
	}
980127
@PrefMetadata(type = CmsTimeWarpPreference.class)
    public String getTimeWarp() {

        long warp = m_settings.getTimeWarp();
        return warp < 0 ? "" : "" + warp; // if timewarp < 0 (i.e. time warp is not set), use the empty string because we don't want the date selector widget to interpret the negative value
    }
559451
public Date getFrom() {
        final TimeInterval first = intervals.first();
        if (first != null) {
            return new Date(first.getFrom());
        }
        return null;
    }
522929
public function getLastFeedExportDate()
    {
        $file = new SplFileInfo($this->config->getDefaultFeedFile());
        if (!$file->isFile()) {
            return null;
        }

        return new DateTime('@' . $file->getMTime());
    }
25466
public function getLastRead(): \DateTime
    {
        if ($this->caching == false) {
            return \DateTime::createFromFormat("F d Y H:i:s.", date("F d Y H:i:s.", fileatime($this->getAbsoluteFilePath())));
        }

        if ($this->lastRead == null) {
            $this->lastRead = \DateTime::createFromFormat("F d Y H:i:s.", date("F d Y H:i:s.", fileatime($this->getAbsoluteFilePath())));
        }

        return $this->lastRead;
    }
613122
static String getFormattedTimestamp() {
        DateFormat df = dateFormatPool.getAndSet(null);
        if (df == null) {
            df = createISODateFormat();
        }
        String timestamp = df.format(new Date());
        dateFormatPool.set(df);
        return timestamp;
    }
30515
public function currentDatetime()
    {
        if ($this->timeFormat === static::$timeFormatDatetime) {
            return date('Y-m-d H:i:s');
        }
        if ($this->timeFormat === static::$timeFormatTimestamp) {
            return time();
        }
        return null;
    }