Here you can find the source of convertTemporalToSplunkSearchFormat(OffsetDateTime localDateTime)
public static String convertTemporalToSplunkSearchFormat(OffsetDateTime localDateTime)
//package com.java2s; //License from project: Apache License import java.time.*; import java.time.format.DateTimeFormatter; public class Main { public static DateTimeFormatter TIME_SPLUNK_SEARCH_FORMATTER = DateTimeFormatter .ofPattern("MM/dd/yyyy:HH:mm:ss"); public static String convertTemporalToSplunkSearchFormat(OffsetDateTime localDateTime) { return TIME_SPLUNK_SEARCH_FORMATTER.format(localDateTime); }//from w w w .j ava2 s . co m }