VirtualBox

Changeset 74125 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Sep 6, 2018 4:14:13 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/time: Extended RTTimeToRfc2822 with a flag for specifying RFC-7231 behaviour. Added simple testcase for it. bugref:9167

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/time.h

    r74069 r74125  
    810810 * @param   psz         Where to store the string.
    811811 * @param   cb          The size of the buffer.
     812 * @param   fFlags      RTTIME_RFC2822_F_XXX
    812813 * @sa      RTTIME_RTC2822_LEN
    813814 */
    814 RTDECL(ssize_t) RTTimeToRfc2822(PRTTIME pTime, char *psz, size_t cb);
     815RTDECL(ssize_t) RTTimeToRfc2822(PRTTIME pTime, char *psz, size_t cb, uint32_t fFlags);
    815816
    816817/** Suggested buffer length for RTTimeToRfc2822 output, including terminator. */
    817818#define RTTIME_RTC2822_LEN      40
     819/** @name RTTIME_RFC2822_F_XXX
     820 * @{ */
     821/** Use the deprecated GMT timezone instead of +/-0000.
     822 * This is required by the HTTP RFC-7231 7.1.1.1. */
     823#define RTTIME_RFC2822_F_GMT    RT_BIT_32(0)
     824/** @} */
    818825
    819826/**
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette