Java DateTimeFormatter getDateTimeAttributeTimeFormat()

Here you can find the source of getDateTimeAttributeTimeFormat()

Description

Get a DateTimeFormatter to use for rendering time information within a time tag's datetime attribute

License

Open Source License

Return

a DateTimeFormatter

Declaration

@Nonnull
public static DateTimeFormatter getDateTimeAttributeTimeFormat() 

Method Source Code


//package com.java2s;
/*//  www .  j  a va 2 s  . com
 * Copyright (c) Interactive Information R & D (I2RD) LLC.
 * All Rights Reserved.
 *
 * This software is confidential and proprietary information of
 * I2RD LLC ("Confidential Information"). You shall not disclose
 * such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered
 * into with I2RD.
 */

import javax.annotation.Nonnull;

import java.time.format.DateTimeFormatter;

public class Main {
    /**
     * Get a DateTimeFormatter to use for rendering time information within a time tag's datetime attribute
     *
     * @return a DateTimeFormatter
     */
    @Nonnull
    public static DateTimeFormatter getDateTimeAttributeTimeFormat() {
        return DateTimeFormatter.ofPattern("hh:mm a");
    }
}

Related

  1. fromInfluxDBTimeFormat(final String timestamp)
  2. fromString(String dateString, DateTimeFormatter formatter)
  3. getDateFormat()
  4. getDateFormat(final Locale LOCALE)
  5. getDateFromFormat(String dtStr)
  6. getDateTimeFormatter()
  7. getFormatDate(String format)
  8. getFormattedDate()
  9. getFormattedDateString()