src.myserver.date
A package for learning network programming in Python.
This module (file) manages date related-utilities.
1###################################################################### 2# Copyright (c) Adrien Luxey-Bitri, Boris Baldassari 3# 4# This program and the accompanying materials are made 5# available under the terms of the Eclipse Public License 2.0 6# which is available at https://www.eclipse.org/legal/epl-2.0/ 7# 8# SPDX-License-Identifier: EPL-2.0 9###################################################################### 10 11""" 12A package for learning network programming in Python. 13 14This module (file) manages date related-utilities. 15""" 16 17from time import gmtime, strftime 18 19_RFC2616_DATE_FORMAT = '%a, %d %b %Y %H:%M:%S GMT' 20 21def now_rfc2616(): 22 return strftime(_RFC2616_DATE_FORMAT, gmtime())
def
now_rfc2616():