APISonar


org.neo4j.values.storable.TimeValue.time

> org > neo4j > values > storable > TimeValue > time
org APIs neo4j APIs values APIs storable APIs TimeValue APIs time APIs

Example 1
public void testTimeType()
    {
        OffsetTime time = TimeValue.time( 23, 11, 8, 0, "+17:59" ).asObjectCopy();
        String key = "dt";
        node1.setProperty( key, time );
        newTransaction();

        Object property = node1.getProperty( key );
        assertEquals( time, property );
    }
Example 2
public void shouldHandleTimeUTC()
    {
        // Given
        TimeValue time = TimeValue.time( 1, 2, 3, 4, "+00:00" );

        // When
        time.writeTo( converter );

        // Then
        Object value = converter.value();
        assertThat( value, instanceOf( OffsetTime.class ) );
        assertThat( value, equalTo( time.asObjectCopy() ) );
    }
Example 3
static Value asValue( long long0, long long1 )
    {
        OffsetTime time = asValueRaw( long0, long1 );
        return time != null ? TimeValue.time( time ) : NO_VALUE;
    }
Example 4
private static TimeValue readTime( ByteBuffer bb, int offset )
    {
        return TimeValue.time( readRawTime( bb, offset ) );
    }