public static AcceptDatetime valueOf ( final String value ) { final Optional < Instant > datetime = parseDatetime ( value ) ; if ( datetime . isPresent ( ) ) { return new AcceptDatetime ( datetime . get ( ) ) ; } return null ; }
Create an Accept - Datetime header object from a string