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

io.cucumber.messages.TimeConversion Maven / Gradle / Ivy

There is a newer version: 27.0.2
Show newest version
package io.cucumber.messages;

import io.cucumber.messages.types.Duration;
import io.cucumber.messages.types.Timestamp;

@Deprecated
@SuppressWarnings("unused")
public final class TimeConversion {

    private TimeConversion(){

    }

    public static Timestamp javaInstantToTimestamp(java.time.Instant instant) {
        return Convertor.toMessage(instant);
    }

    public static Duration javaDurationToDuration(java.time.Duration duration) {
        return Convertor.toMessage(duration);
    }

    public static java.time.Instant timestampToJavaInstant(Timestamp timestamp) {
        return Convertor.toInstant(timestamp);
    }

    public static java.time.Duration durationToJavaDuration(Duration duration) {
        return Convertor.toDuration(duration);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy