From fa8b3fdccc2490e1c8820549842edc4f541fc537 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Tue, 11 Jun 2013 11:49:45 +0200 Subject: [PATCH] Added HTTP_DATE.make_now_utc for convenience. --- library/network/protocol/http/src/http_date.e | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/network/protocol/http/src/http_date.e b/library/network/protocol/http/src/http_date.e index 18d1a5a5..7a404017 100644 --- a/library/network/protocol/http/src/http_date.e +++ b/library/network/protocol/http/src/http_date.e @@ -39,6 +39,7 @@ inherit DEBUG_OUTPUT create + make_now_utc, make_from_timestamp, make_from_string, make_from_date_time @@ -76,6 +77,12 @@ feature {NONE} -- Initialization date_time := dt end + make_now_utc + -- Build from current utc date time. + do + create date_time.make_now_utc + end + feature -- Access has_error: BOOLEAN