Tornado 6.5 Documentationthese vulnerabilities. The correct form of escaping is context-dependent; Tornado’s templates are not aware of the syntax of HTML, JavaScript, etc, and so the template developer must sometimes explicitly apply return a datetime object or None. Added in version 3.1. Changed in version 6.4: Now returns an aware datetime object instead of a naive one. Subclasses that override this method may return either kind dates in the past. For dates in the future, we fall back to full format. Changed in version 6.4: Aware datetime.datetime objects are now supported (naive datetimes are still assumed to be UTC). format_day(date:0 码力 | 272 页 | 1.12 MB | 3 月前3
Tornado 6.4 Documentation
Should return a datetime object or None. New in version 3.1. Changed in version 6.4: Now returns an aware datetime object instead of a naive one. Subclasses that override this method may return either kind dates in the past. For dates in the future, we fall back to full format. Changed in version 6.4: Aware datetime.datetime objects are now supported (naive datetimes are still assumed to be UTC). format_day(date: gmtime, or a datetime.datetime object. Naive datetime.datetime objects are assumed to represent UTC; aware objects are converted to UTC before formatting. >>> format_timestamp(1359312200) 'Sun, 27 Jan 20130 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
Should return a datetime object or None. New in version 3.1. Changed in version 6.4: Now returns an aware datetime object instead of a naive one. Subclasses that override this method may return either kind dates in the past. For dates in the future, we fall back to full format. Changed in version 6.4: Aware datetime.datetime objects are now supported (naive datetimes are still assumed to be UTC). format_day(date: gmtime, or a datetime.datetime object. Naive datetime.datetime objects are assumed to represent UTC; aware objects are converted to UTC before formatting. >>> format_timestamp(1359312200) 'Sun, 27 Jan 20130 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
Should return a datetime object or None. New in version 3.1. Changed in version 6.4: Now returns an aware datetime object instead of a naive one. Subclasses that override this method may return either kind dates in the past. For dates in the future, we fall back to full format. Changed in version 6.4: Aware datetime.datetime objects are now supported (naive datetimes are still assumed to be UTC). format_day(date: gmtime, or a datetime.datetime object. Naive datetime.datetime objects are assumed to represent UTC; aware objects are converted to UTC before formatting. >>> format_timestamp(1359312200) 'Sun, 27 Jan 20130 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.5 Documentationthese vulnerabilities. The correct form of escaping is context-dependent; Tornado’s templates are not aware of the syntax of HTML, JavaScript, etc, and so the template developer must sometimes explicitly apply html#datetime.datetime] object or None. Added in version 3.1. Changed in version 6.4: Now returns an aware datetime object instead of a naive one. Subclasses that override this method may return either kind dates in the past. For dates in the future, we fall back to full format. Changed in version 6.4: Aware datetime.datetime [https://docs.python.org/3/library/datetime.html#datetime.datetime] objects are0 码力 | 437 页 | 405.14 KB | 3 月前3
Tornado 6.4 Documentation
html#datetime.datetime] object or None. New in version 3.1. Changed in version 6.4: Now returns an aware datetime object instead of a naive one. Subclasses that override this method may return either kind dates in the past. For dates in the future, we fall back to full format. Changed in version 6.4: Aware datetime.datetime [https://docs.python.org/3/library/datetime.html#datetime.datetime] objects are [https://docs.python.org/3/library/datetime.html#datetime.datetime] objects are assumed to represent UTC; aware objects are converted to UTC before formatting. >>> format_timestamp(1359312200) 'Sun, 27 Jan 20130 码力 | 432 页 | 402.58 KB | 1 年前3
Tornado 6.4 Documentation
html#datetime.datetime] object or None. New in version 3.1. Changed in version 6.4: Now returns an aware datetime object instead of a naive one. Subclasses that override this method may return either kind dates in the past. For dates in the future, we fall back to full format. Changed in version 6.4: Aware datetime.datetime [https://docs.python.org/3/library/datetime.html#datetime.datetime] objects are [https://docs.python.org/3/library/datetime.html#datetime.datetime] objects are assumed to represent UTC; aware objects are converted to UTC before formatting. >>> format_timestamp(1359312200) 'Sun, 27 Jan 20130 码力 | 432 页 | 402.58 KB | 1 年前3
Tornado 6.4 Documentation
html#datetime.datetime] object or None. New in version 3.1. Changed in version 6.4: Now returns an aware datetime object instead of a naive one. Subclasses that override this method may return either kind dates in the past. For dates in the future, we fall back to full format. Changed in version 6.4: Aware datetime.datetime [https://docs.python.org/3/library/datetime.html#datetime.datetime] objects are [https://docs.python.org/3/library/datetime.html#datetime.datetime] objects are assumed to represent UTC; aware objects are converted to UTC before formatting. >>> format_timestamp(1359312200) 'Sun, 27 Jan 20130 码力 | 432 页 | 402.58 KB | 1 年前3
Tornado 4.5 Documentation
and writing. IOStream: Implementation of BaseIOStream using non-blocking sockets. SSLIOStream: SSL-aware version of IOStream. PipeIOStream: Pipe-based IOStream implementation. Base class class tornado Connection(options.mysql_host) ... The main() method of your application does not need to be aware of all of the options used throughout your program; they are all automatically loaded when the modules it’s necessary: If you’re writing an asynchronous library that doesn’t rely on a stack_context- aware library like tornado.ioloop or tornado.iostream (for example, if you’re writing a thread pool), use0 码力 | 333 页 | 322.34 KB | 1 年前3
Tornado 4.5 Documentation
writing. • IOStream: Implementation of BaseIOStream using non-blocking sockets. • SSLIOStream: SSL-aware version of IOStream. • PipeIOStream: Pipe-based IOStream implementation. Base class class tornado database.Connection(options.mysql_host) ... The main() method of your application does not need to be aware of all of the options used throughout your program; they are all automatically loaded when the modules it’s necessary: • If you’re writing an asynchronous library that doesn’t rely on a stack_context-aware library like tornado. ioloop or tornado.iostream (for example, if you’re writing a thread pool), use0 码力 | 222 页 | 833.04 KB | 1 年前3
共 20 条
- 1
- 2













