Short answer
Use UTor GMT, but not UTC.
RFC 1123
My reading of RFC 1123 is that it uses RFC 822 for date and time formats other than tweets.
RFC 822
RFC 822 does not contain a word UTC. Instead, a UTsynonym is indicated on page 25 GMT. So you can use UT, but not UTC.
RFC 2822
In addition, RFC 822 has been replaced by RFC 2822 (yes, nice numbering). This specification only mentions UTC once, defining time zone offsets. But this specification does not add UTCas identifier in format. The same rule uses only GMTor UTin your lines.
ISO 8601
, RFC 822 1123, . , , , , UT GMT, , , UT UTC , 3 4 , , .
, ISO 8601, "" . RFC 822. ISO 8601 /.
ISO 8601:
2014-09-06T13:35:58-02:00
2014-09-06T15:35:58Z
, Go, UTC , .
java.time
FYI, Java , java.time. Java 8 , back-ported Java 6 7 Android. OpenJDK.
java.time ISO 8601 / .
, DateTimeFormatter http://tools.ietf.org/html/rfc1123, DateTimeFormatter.RFC_1123_DATE_TIME , Tue, 3 Jun 2008 11:05:30 GMT.
code live in IdeOne.com.
Instant instant = Instant.now() ;
OffsetDateTime odt = instant.atOffset( ZoneOffset.UTC ) ;
DateTimeFormatter f = DateTimeFormatter.RFC_1123_DATE_TIME ;
String output = odt.format( f ) ;
instant.toString(): 2016-11-15T21:12: 49.261Z
odt.toString(): 2016-11-15T21:12: 49.261Z
output: Tue, 15 2016 21:12:49 GMT