Tabnine Logo
OrgDelay.getUnit
Code IndexAdd Tabnine to your IDE (free)

How to use
getUnit
method
in
com.orgzly.org.datetime.OrgDelay

Best Java code snippets using com.orgzly.org.datetime.OrgDelay.getUnit (Showing top 3 results out of 315)

origin: orgzly/org-java

@Test
public void testDelayOnlyWithTime() {
  OrgDateTime time = OrgDateTime.parse("<2009-10-17 13:15 -2d>");
  Assert.assertFalse(time.hasRepeater());
  Assert.assertTrue(time.hasDelay());
  Assert.assertEquals(OrgDelay.Type.ALL, time.getDelay().getType());
  Assert.assertEquals(2, time.getDelay().getValue());
  Assert.assertEquals(OrgDelay.Unit.DAY, time.getDelay().getUnit());
}
origin: orgzly/org-java

@Test
public void testDelayOnlyWithWeekday() {
  OrgDateTime time = OrgDateTime.parse("<2009-10-17 Wed -2d>");
  Assert.assertFalse(time.hasRepeater());
  Assert.assertTrue(time.hasDelay());
  Assert.assertEquals(OrgDelay.Type.ALL, time.getDelay().getType());
  Assert.assertEquals(2, time.getDelay().getValue());
  Assert.assertEquals(OrgDelay.Unit.DAY, time.getDelay().getUnit());
}
origin: orgzly/org-java

@Test
public void testDelayFirstOccurrence() {
  OrgDateTime time = OrgDateTime.parse("<2009-10-17 13:15 +1m --2d>");
  Assert.assertTrue(time.hasRepeater());
  Assert.assertTrue(time.hasDelay());
  Assert.assertEquals(OrgDelay.Type.FIRST_ONLY, time.getDelay().getType());
  Assert.assertEquals(2, time.getDelay().getValue());
  Assert.assertEquals(OrgDelay.Unit.DAY, time.getDelay().getUnit());
}
com.orgzly.org.datetimeOrgDelaygetUnit

Popular methods of OrgDelay

  • <init>
  • getType
  • getValue
  • parse
  • setTypeFromString
  • setUnit
  • setValue

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • String (java.lang)
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ImageIO (javax.imageio)
  • JCheckBox (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top PhpStorm plugins
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