Android Time Parse isRFC3339Date(String date)

Here you can find the source of isRFC3339Date(String date)

Description

is RFC Date

Declaration

public static boolean isRFC3339Date(String date) 

Method Source Code

//package com.java2s;

import android.text.format.Time;

import android.util.TimeFormatException;

public class Main {
    public static boolean isRFC3339Date(String date) {
        boolean ret = false;
        try {/*from  ww w  .  j  av a  2s  .co  m*/
            if (date != null && date.length() > 0) {
                Time t = new Time();
                t.parse3339(date);
                ret = true;
            }
        } catch (TimeFormatException tfex) {
        }
        return ret;
    }
}

Related

  1. parseTime(String time)
  2. parseTimeString(final String time)
  3. str2Time(String str)
  4. str2TimeMillis(String str)