Results of 11 - 20 of about 74 for datetime (0.045 sec.)
- How to create custom template tags and filters — Django 4.0.6 ドキュメント 7412
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
es ¶ If you write a custom filter that operates on datetime objects, you'll usually register it with the expec ...
first argument to your filter is a time zone aware datetime, Django will convert it to the current time zone b ...
ime 関数は、以下のように書くことができます: import datetime from django import template register = template . ...
ple_tag def current_time ( format_string ): return datetime . datetime . now () . strftime ( format_string ) s ...
-
https://man.plustar.jp/django/howto/custom-template-tags.html
- [similar]
- Porting your apps from Django 0.96 to 1.0 — Django 4.0.6 ドキュメント 7370
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
es of LazyDate can be replaced with a reference to datetime.datetime.now : Old (0.96): class Article ( models ...
teField ( default = LazyDate ()) New (1.0): import datetime class Article ( models . Model ): title = models . ...
= 100 ) published = models . DateField ( default = datetime . datetime . now ) DecimalField is new, and FloatF ...
runc_sql connection.ops.date_trunc_sql backend.get_datetime_cast_sql connection.ops.datetime_cast_sql backend. ...
-
https://man.plustar.jp/django/releases/1.0-porting-guide.html
- [similar]
- 組み込みタグとフィルタ — Django 4.0.6 ドキュメント 7314
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
す。 注釈 フォーマットはプリセット( DATE_FORMAT 、 DATETIME_FORMAT 、 SHORT_DATE_FORMAT 、 SHORT_DATETIME_FORM ...
いるロケールによって変わります。 It is {% now "SHORT_DATETIME_FORMAT" %} You can also use the syntax {% now "Y" ...
e タイムゾーン名。どのフォーマットでも使えますが、 datetime によっては空の文字列を返す場合もあります。 '' , 'G ...
r will not add timezone offset if value is a naive datetime (see datetime.tzinfo ). 2008-01-02T10:30:00.000123 ...
-
https://man.plustar.jp/django/ref/templates/builtins.html
- [similar]
- django.utils.encoding — Django 4.0.6 ドキュメント 7161
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
utils.encoding のソースコード import codecs import datetime import locale from decimal import Decimal from url ...
D_TYPES = ( type ( None ), int , float , Decimal , datetime . datetime , datetime . date , datetime . time , ) ...
-
https://man.plustar.jp/django/_modules/django/utils/encoding.html
- [similar]
- django.utils.http — Django 4.0.6 ドキュメント 7161
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ngo.utils.http のソースコード import base64 import datetime import re import unicodedata from binascii import ...
t in a valid HTTP date format" % date ) try : tz = datetime . timezone . utc year = int ( m [ "year" ]) if yea ...
r < 100 : current_year = datetime . datetime . now ( tz = tz ) . year current_centur ...
t ( m [ "min" ]) sec = int ( m [ "sec" ]) result = datetime . datetime ( year , month , day , hour , min , sec ...
-
https://man.plustar.jp/django/_modules/django/utils/http.html
- [similar]
- セッションの使いかた — Django 4.0.6 ドキュメント 7119
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ッションを破棄するように設定できます。 もし value が datetime または timedelta オブジェクトならば、指定された日時 ...
に破棄されます。 datetime と timedelta の値がシリアライズできるのは、 Pickle ...
す。 modification : セッションを最後に修正した時刻を datetime オブジェクトとして与える。デフォルトは現在の時刻。 ...
expiry : セッションの有効期限の情報を datetime オブジェクト、 int (秒数で)、または None として与え ...
-
https://man.plustar.jp/django/topics/http/sessions.html
- [similar]
- はじめての Django アプリ作成、その2 — Django 4.0.6 ドキュメント 7008
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
CharField ( max_length = 200 ) pub_date = models . DateTimeField ( 'date published' ) class Choice ( models . ...
ています。例えば、 CharField は文字のフィールドで、 DateTimeField は日時フィー ルドです。こうしたクラスは、各フ ...
n the default settings file, so # Django expects a datetime with tzinfo for pub_date. Use timezone.now() # ins ...
tead of datetime.datetime.now() and it will do the right thing. >>> ...
-
https://man.plustar.jp/django/intro/tutorial02.html
- [similar]
- Generic date ビュー — Django 4.0.6 ドキュメント 7008
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
能にするすべての年を含む QuerySet オブジェクトです。 datetime.datetime オブジェクトとして表され、降順で表示されま ...
s available according to queryset , represented as datetime.datetime objects, in ascending order. year : A dat ...
iven month, according to queryset , represented as datetime.datetime objects, in ascending order. month : A da ...
-
https://man.plustar.jp/django/ref/class-based-views/generic-date-based.html
- [similar]
- モデルフィールドリファレンス — Django 4.0.6 ドキュメント 7008
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
date for use with DateField : class MoonLandings ( datetime . date , models . Choices ): APOLLO_11 = 1969 , 7 ...
_for_date ¶ Set this to the name of a DateField or DateTimeField to require that this field be unique for the ...
pub_date . Note that if you set this to point to a DateTimeField , only the date portion of the field will be ...
, auto_now_add = False , ** options ) ¶ Python で datetime.date インスタンスによって表される日付です。多少の追 ...
-
https://man.plustar.jp/django/ref/models/fields.html
- [similar]
- Django 1.4.9 release notes — Django 4.0.6 ドキュメント 7008
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ation. Bugfixes ¶ Fixed a data corruption bug with datetime_safe.datetime.combine (#21256). 目次 Django 1.4.9 ...
-
https://man.plustar.jp/django/releases/1.4.9.html
- [similar]