Home
last modified time | relevance | path

Searched refs:BHttpTimeFormat (Results 1 – 4 of 4) sorted by relevance

/haiku/src/kits/network/libnetservices2/
H A DHttpTime.cpp36 static const std::list<std::pair<BHttpTimeFormat, const char*>> kDateFormats = {
38 {BHttpTimeFormat::RFC1123, "%a, %d %b %Y %H:%M:%S GMT"}, // canonical
39 {BHttpTimeFormat::RFC1123, "%a, %d %b %Y %H:%M:%S"}, // without timezone
41 {BHttpTimeFormat::RFC850, "%A, %d-%b-%y %H:%M:%S GMT"}, // canonical
42 {BHttpTimeFormat::RFC850, "%A, %d-%b-%y %H:%M:%S"}, // without timezone
44 {BHttpTimeFormat::RFC850, "%a, %d-%b-%Y %H:%M:%S"}, // without timezone
45 {BHttpTimeFormat::RFC850, "%a, %d-%b-%Y %H:%M:%S GMT"}, // with 4-digit year
46 {BHttpTimeFormat::RFC850, "%a, %d-%b-%Y %H:%M:%S UTC"}, // "UTC" timezone
48 {BHttpTimeFormat::AscTime, "%a %b %e %H:%M:%S %Y"},
89 fDateFormat(BHttpTimeFormat::RFC1123) in BHttpTime()
[all …]
/haiku/headers/private/netservices2/
H A DHttpTime.h18 enum class BHttpTimeFormat : int8 { RFC1123 = 0, RFC850, AscTime }; enum
39 BHttpTimeFormat DateTimeFormat() const noexcept;
40 BString ToString(BHttpTimeFormat outputFormat
41 = BHttpTimeFormat::RFC1123) const;
47 BHttpTimeFormat fDateFormat;
66 BHttpTimeFormat outputFormat = BHttpTimeFormat::RFC1123);
/haiku/docs/user/netservices/
H A DHttpTime.dox62 \enum BHttpTimeFormat
179 \fn BHttpTimeFormat BHttpTime::DateTimeFormat() const noexcept
189 \c BHttpTimeFormat::RFC1123.
191 \return The \ref BHttpTimeFormat that describes the format the input string was in, or
192 \c BHttpTimeFormat::RFC1123 if the timestamp was set by a \ref BDateTime.
199 \fn BString BHttpTime::ToString(BHttpTimeFormat outputFormat=BHttpTimeFormat::RFC1123) const
215 BHttpTimeFormat outputFormat=BHttpTimeFormat::RFC1123)
/haiku/src/tests/kits/net/netservices2/
H A DHttpProtocolTest.cpp35 using BPrivate::Network::BHttpTimeFormat;
349 format_http_time(kExpectedDateTime, BHttpTimeFormat::RFC850)); in HttpTimeTest()
351 format_http_time(kExpectedDateTime, BHttpTimeFormat::AscTime)); in HttpTimeTest()