public long [ ] asEpochSecondArray ( ZoneOffset offset ) { long [ ] output = new long [ data . size ( ) ] ; for ( int i = 0 ; i < data . size ( ) ; i ++ ) { LocalDateTime dateTime = PackedLocalDateTime . asLocalDateTime ( data . getLong ( i ) ) ; if ( dateTime == null ) { output [ i ] = Long . MIN_VALUE ; } else { output [ i ] = dateTime . toEpochSecond ( offset ) ; } } return output ; }
Returns the seconds from epoch for each value as an array based on the given offset