All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.intelie.pipes.time.TimeSpan Maven / Gradle / Ivy

There is a newer version: 0.25.5
Show newest version
package net.intelie.pipes.time;

import net.intelie.pipes.PipeException;
import net.intelie.pipes.util.AutomatonRepr;

import java.io.Serializable;
import java.time.ZoneId;
import java.util.List;
import java.util.TimeZone;

public interface TimeSpan extends Serializable {
    static TimeSpan parse(String span) throws PipeException {
        return new TimeSpanParser().parse(span);
    }

    static TimeSpan parse(String span, ZoneId zone) throws PipeException {
        return new TimeSpanParser().parse(span, zone);
    }

    long start(long reference);

    long end(long reference);

    boolean isFixed();

    boolean isPoint();

    boolean includesPresent();

    SpanMetadata metadata();

    List children();

    SpanAnnotations annotations();

    TimeSpan forceZone(ZoneId zone);

    AutomatonRepr repr(long timestamp, String zone);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy