HTTPDate

from panda3d.core import HTTPDate
class HTTPDate

Bases: DTOOL_SUPER_BASE

A container for an HTTP-legal time/date indication. This can accept a string from an HTTP header and will decode it into a C time_t value; conversely, it can accept a time_t value and encode it for output as a string.

Inheritance diagram

Inheritance diagram of HTTPDate

__init__(*args, **kwargs)
assign()

C++ Interface: assign(const HTTPDate self, const HTTPDate copy)

compareTo()

C++ Interface: compare_to(HTTPDate self, const HTTPDate other)

/**
  • Returns a number less than zero if this HTTPDate sorts before the other

  • one, greater than zero if it sorts after, or zero if they are equivalent.

*/

compare_to()

C++ Interface: compare_to(HTTPDate self, const HTTPDate other)

/**
  • Returns a number less than zero if this HTTPDate sorts before the other

  • one, greater than zero if it sorts after, or zero if they are equivalent.

*/

getString()

C++ Interface: get_string(HTTPDate self)

/**

*/

getTime()

C++ Interface: get_time(HTTPDate self)

/**
  • Returns the date as a C time_t value.

*/

get_string()

C++ Interface: get_string(HTTPDate self)

/**

*/

get_time()

C++ Interface: get_time(HTTPDate self)

/**
  • Returns the date as a C time_t value.

*/

input()

C++ Interface: input(const HTTPDate self, istream in)

/**

*/

isValid()

C++ Interface: is_valid(HTTPDate self)

/**
  • Returns true if the date is meaningful, or false if it is -1 (which

  • generally indicates the source string could not be parsed.)

*/

is_valid()

C++ Interface: is_valid(HTTPDate self)

/**
  • Returns true if the date is meaningful, or false if it is -1 (which

  • generally indicates the source string could not be parsed.)

*/

now()

C++ Interface: now()

/**
  • Returns an HTTPDate that represents the current time and date.

*/

output()

C++ Interface: output(HTTPDate self, ostream out)

/**

*/