congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TestCalendarDateFormatter
Code IndexAdd Tabnine to your IDE (free)

How to use
TestCalendarDateFormatter
in
ucar.nc2.time

Best Java code snippets using ucar.nc2.time.TestCalendarDateFormatter (Showing top 5 results out of 315)

origin: Unidata/thredds

@Test
public void testBasicFormatIso() {
 claimGood("19500101T000000Z"); // from https://github.com/Unidata/thredds/issues/772
 claimGood("199707");
 claimGood("19970716");
 claimGood("19970716T1920");
 claimGood("19970716T192030");
 claimGood("19970716T192030.1");
 claimGood("19970716T1920+01:00");
 claimGood("19970716T192030+0100");
 claimGood("19970716T192030+01");
 claimGood("19970716T192030.1+0100");
 claimGood("19970716T192030Z");
 claimGood("19970716T192030.1Z");
 // these should fail
 claimBad("19970716T192030.1UTC");
 claimBad("19501"); // fail because ambiguous
 claimBad("1950112"); // fail because ambiguous
 claimBad("19501120T121"); // fail because ambiguous
 claimBad("19501120T12151"); // fail because ambiguous
}
origin: Unidata/thredds

@Test
public void testChangeoverDate() {
 claimGood("1997-01-01");
 claimGood("1582-10-16");
 claimGood("1582-10-15");
 claimGood("1582-10-01");
 claimGood("1582-10-02");
 claimGood("1582-10-03");
 claimGood("1582-10-04");
 //testBase("1582-10-14"); // fail
 //testBase("1582-10-06"); // fail
}
origin: Unidata/thredds

@Test
public void testBad() {
 claimBad("1143848700");
}
origin: Unidata/thredds

@Test
public void testW3cIso() {
 claimGood("1997");
 claimGood("1997-07");
 claimGood("1997-07-16");
 claimGood("1997-07-16T19:20+01:00");
 claimGood("1997-07-16T19:20:30+01:00");
}
origin: Unidata/thredds

@Test
public void testUdunits() {
 claimGood("1992-10-8 15:15:42.5 -6:00");
 claimGood("1992-10-8 15:15:42.5 +6");
 claimGood("1992-10-8 15:15:42.534");
 claimGood("1992-10-8 15:15:42");
 claimGood("1992-10-8 15:15");
 claimGood("1992-10-8 15");
 claimGood("1992-10-8T15");
 claimGood("1992-10-8");
 claimGood("199-10-8");
 claimGood("19-10-8");
 claimGood("1-10-8");
 claimGood("+1101-10-8");
 claimGood("-1101-10-8");
 claimGood("1992-10-8T7:00 -6:00");
 claimGood("1992-10-8T7:00 +6:00");
 claimGood("1992-10-8T7 -6:00");
 claimGood("1992-10-8T7 +6:00");
 claimGood("1992-10-8 7 -6:00");
 claimGood("1992-10-8 7 +6:00");
}
ucar.nc2.timeTestCalendarDateFormatter

Javadoc

Test CalendarDateFormatter

Most used methods

  • claimBad
  • claimGood

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Collectors (java.util.stream)
  • Top plugins for WebStorm
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