Java Code Examples for org.joda.time.DateTimeFieldType#secondOfMinute()
The following examples show how to use
org.joda.time.DateTimeFieldType#secondOfMinute() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestISODateTimeFormat.java From astor with GNU General Public License v2.0 | 5 votes |
public void testFormat_time_partial() { Partial dt = new Partial( new DateTimeFieldType[] {DateTimeFieldType.hourOfDay(), DateTimeFieldType.minuteOfHour(), DateTimeFieldType.secondOfMinute(), DateTimeFieldType.millisOfSecond()}, new int[] {10, 20, 30, 40}); assertEquals("10:20:30.040", ISODateTimeFormat.time().print(dt)); }
Example 2
Source File: TestISODateTimeFormat.java From astor with GNU General Public License v2.0 | 5 votes |
public void testFormat_timeNoMillis_partial() { Partial dt = new Partial( new DateTimeFieldType[] {DateTimeFieldType.hourOfDay(), DateTimeFieldType.minuteOfHour(), DateTimeFieldType.secondOfMinute(), DateTimeFieldType.millisOfSecond()}, new int[] {10, 20, 30, 40}); assertEquals("10:20:30", ISODateTimeFormat.timeNoMillis().print(dt)); }
Example 3
Source File: TestISODateTimeFormat.java From astor with GNU General Public License v2.0 | 5 votes |
public void testFormat_time_partial() { Partial dt = new Partial( new DateTimeFieldType[] {DateTimeFieldType.hourOfDay(), DateTimeFieldType.minuteOfHour(), DateTimeFieldType.secondOfMinute(), DateTimeFieldType.millisOfSecond()}, new int[] {10, 20, 30, 40}); assertEquals("10:20:30.040", ISODateTimeFormat.time().print(dt)); }
Example 4
Source File: TestISODateTimeFormat.java From astor with GNU General Public License v2.0 | 5 votes |
public void testFormat_timeNoMillis_partial() { Partial dt = new Partial( new DateTimeFieldType[] {DateTimeFieldType.hourOfDay(), DateTimeFieldType.minuteOfHour(), DateTimeFieldType.secondOfMinute(), DateTimeFieldType.millisOfSecond()}, new int[] {10, 20, 30, 40}); assertEquals("10:20:30", ISODateTimeFormat.timeNoMillis().print(dt)); }
Example 5
Source File: TestPreciseDurationDateTimeField.java From astor with GNU General Public License v2.0 | 4 votes |
protected MockPreciseDurationDateTimeField() { super(DateTimeFieldType.secondOfMinute(), new MockCountingDurationField(DurationFieldType.seconds())); }
Example 6
Source File: TestPreciseDateTimeField.java From astor with GNU General Public License v2.0 | 4 votes |
protected MockPreciseDateTimeField() { super(DateTimeFieldType.secondOfMinute(), new MockCountingDurationField(DurationFieldType.seconds(), 60), new MockCountingDurationField(DurationFieldType.minutes(), 60 * 60)); }
Example 7
Source File: TestBaseDateTimeField.java From astor with GNU General Public License v2.0 | 4 votes |
protected MockBaseDateTimeField() { super(DateTimeFieldType.secondOfMinute()); }
Example 8
Source File: TestPreciseDurationDateTimeField.java From astor with GNU General Public License v2.0 | 4 votes |
protected MockPreciseDurationDateTimeField() { super(DateTimeFieldType.secondOfMinute(), new MockCountingDurationField(DurationFieldType.seconds())); }
Example 9
Source File: TestPreciseDateTimeField.java From astor with GNU General Public License v2.0 | 4 votes |
protected MockPreciseDateTimeField() { super(DateTimeFieldType.secondOfMinute(), new MockCountingDurationField(DurationFieldType.seconds(), 60), new MockCountingDurationField(DurationFieldType.minutes(), 60 * 60)); }
Example 10
Source File: TestBaseDateTimeField.java From astor with GNU General Public License v2.0 | 4 votes |
protected MockBaseDateTimeField() { super(DateTimeFieldType.secondOfMinute()); }