class OptionalTsData {

    @NonNull
    public static Builder2<Date> builderByDate(@NonNull Calendar resource, @NonNull ObsGathering gathering, @NonNull ObsCharacteristics... characteristics) {
        return builder(gathering, toEnumSet(characteristics), Date::getTime, (f, p) -> getIdFromTimeInMillis(resource, f, p));
    }

}