Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.github.fge.jsonschema.format.draftv3;
 
 
 import static org.joda.time.DateTimeFieldType.*;
 
public final class TimeAttribute
    private static final FormatAttribute INSTANCE = new TimeAttribute();
    private TimeAttribute()
    {
        super("time""HH:mm:ss");
    }
    public static FormatAttribute getInstance()
    {
        return ;
    }
    @Override
    protected DateTimeFormatter getFormatter()
    {
        DateTimeFormatterBuilder builder = new DateTimeFormatterBuilder();
        builder = builder.appendFixedDecimal(hourOfDay(), 2)
            .appendLiteral(':')
            .appendFixedDecimal(minuteOfHour(), 2)
            .appendLiteral(':')
            .appendFixedDecimal(secondOfMinute(), 2);
        return builder.toFormatter();
    }
New to GrepCode? Check out our FAQ X