wzp
2021-05-13 7d694a9113118daec5be7ac224dab46a3b20f106
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2012 Mark Cavage, Inc.  All rights reserved.
 
'use strict';
 
/**
 * Takes an instance of a date object, formats it UTC
 * e.g., Wed, 17 Jun 2015 01:30:26 GMT.
 *
 * @public
 * @function httpDate
 * @param    {Object} now - a date object
 * @returns  {String}       formatted dated object
 */
module.exports = function httpDate(now) {
    return now.toUTCString();
};