Results of 1 - 10 of about 32 for today (0.010 sec.)
- xmlrpc.client --- XML-RPC クライアントアクセス — Python 3.14.8 ドキュメント 13419
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » xmlrpc.client --- XML-RPC クライアントアクセス テーマ 自動 ライト ダーク | xmlrpc.client --- X
...作する例です。サーバ側のコード: import datetime as dt from xmlrpc.server import SimpleXMLRPCServer import xmlrpc.client def today (): today = dt . datetime . today () return xmlrpc . client . DateTime ( today ) server = SimpleXMLRPCServer (( "localhost..." , 8000 )) print ( "Listening on port 8000..." ) server . register_function ( today , "today" ) server . serve_forever () 上記のサーバーに対するクライアントコード: import xmlrpc.client import datetime as dt...proxy = xmlrpc . client . ServerProxy ( "http://localhost:8000/" ) today = proxy . today () # convert the ISO 8601 string to a datetime object converted = dt . datetime . strptime ( today . value... - https://man.mtool.work/python/3.14/library/xmlrpc.client.html
- xmlrpc.client --- XML-RPC クライアントアクセス — Python 3.14.8 ドキュメント 13419
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » xmlrpc.client --- XML-RPC クライアントアクセス テーマ 自動 ライト ダーク | xmlrpc.client --- X
...作する例です。サーバ側のコード: import datetime as dt from xmlrpc.server import SimpleXMLRPCServer import xmlrpc.client def today (): today = dt . datetime . today () return xmlrpc . client . DateTime ( today ) server = SimpleXMLRPCServer (( "localhost..." , 8000 )) print ( "Listening on port 8000..." ) server . register_function ( today , "today" ) server . serve_forever () 上記のサーバーに対するクライアントコード: import xmlrpc.client import datetime as dt...proxy = xmlrpc . client . ServerProxy ( "http://localhost:8000/" ) today = proxy . today () # convert the ISO 8601 string to a datetime object converted = dt . datetime . strptime ( today . value... - https://man.mtool.work/python/3.14/library/xmlrpc.client.html
- datetime --- 基本的な日付と時間の型 — Python 3.14.8 ドキュメント 10052
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » datetime --- 基本的な日付と時間の型 テーマ 自動 ライト ダーク | datetime --- 基本的な日付と時間の型 ¶ ソースコード: Lib/
...を与えた場合、 ValueError が送出されます。 他のコンストラクタ、および全てのクラスメソッドを以下に示します: classmethod date. today ( ) ¶ 現在のローカルな日付を返します。 date.fromtimestamp(time.time()) と等価です。 classmethod date. fromtimestamp ( time...てください。 Examples of usage: date ¶ イベントまでの日数を数える例を示します: >>> import time >>> import datetime as dt >>> today = dt . date . today () >>> today datetime.date(2007, 12, 5) >>> today == dt . date . fromtimestamp ( time . time ()) True...>>> my_birthday = dt . date ( today . year , 6 , 24 ) >>> if my_birthday < today : ... my_birthday = my_birthday . replace ( year = today . year + 1 ) ... >>>... - https://man.mtool.work/python/3.14/library/datetime.html
- datetime --- 基本的な日付と時間の型 — Python 3.14.8 ドキュメント 10052
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » datetime --- 基本的な日付と時間の型 テーマ 自動 ライト ダーク | datetime --- 基本的な日付と時間の型 ¶ ソースコード: Lib/
...を与えた場合、 ValueError が送出されます。 他のコンストラクタ、および全てのクラスメソッドを以下に示します: classmethod date. today ( ) ¶ 現在のローカルな日付を返します。 date.fromtimestamp(time.time()) と等価です。 classmethod date. fromtimestamp ( time...てください。 Examples of usage: date ¶ イベントまでの日数を数える例を示します: >>> import time >>> import datetime as dt >>> today = dt . date . today () >>> today datetime.date(2007, 12, 5) >>> today == dt . date . fromtimestamp ( time . time ()) True...>>> my_birthday = dt . date ( today . year , 6 , 24 ) >>> if my_birthday < today : ... my_birthday = my_birthday . replace ( year = today . year + 1 ) ... >>>... - https://man.mtool.work/python/3.14/library/datetime.html
- enum --- 列挙型のサポート — Python 3.14.8 ドキュメント 8731
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » enum --- 列挙型のサポート テーマ 自動 ライト ダーク | enum --- 列挙型のサポート ¶ Added in version 3.4. ソースコード: Li
...... TUESDAY = 2 ... WEDNESDAY = 3 ... THURSDAY = 4 ... FRIDAY = 5 ... SATURDAY = 6 ... SUNDAY = 7 ... @classmethod ... def today ( cls ): ... print ( f 'today is { cls ( dt . date . today () . isoweekday ()) . name } ' ) ... >>> dir ( Weekday . SATURD...AY ) ['__class__', '__doc__', '__eq__', '__hash__', '__module__', 'name', 'today', 'value'] _generate_next_value_ ( name , start , count , last_values ) ¶ name : 定義されているメンバーの名前(例:'RED')。... - https://man.mtool.work/python/3.14/library/enum.html
- unittest.mock --- 入門 — Python 3.14.8 ドキュメント 8731
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p
...t mock_backend . mock_calls == call_list 部分的なモック ¶ For some tests, you may want to mock out a call to datetime.date.today() to return a known date, but don't want to prevent the code under test from creating new date objects. Unfortunately date...time.date is written in C, so you cannot just monkey-patch out the static datetime.date.today() method. Instead, you can effectively wrap the date class with a mock, while passing through calls to the constructor to...date が構築されて返されます。: >>> import datetime as dt >>> with patch ( 'mymodule.date' ) as mock_date : ... mock_date . today . return_value = dt . date ( 2010 , 10 , 8 ) ... mock_date . side_effect = lambda * args , ** kw : dt . date ( * args , **... - https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
- enum --- 列挙型のサポート — Python 3.14.8 ドキュメント 8731
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » enum --- 列挙型のサポート テーマ 自動 ライト ダーク | enum --- 列挙型のサポート ¶ Added in version 3.4. ソースコード: Li
...... TUESDAY = 2 ... WEDNESDAY = 3 ... THURSDAY = 4 ... FRIDAY = 5 ... SATURDAY = 6 ... SUNDAY = 7 ... @classmethod ... def today ( cls ): ... print ( f 'today is { cls ( dt . date . today () . isoweekday ()) . name } ' ) ... >>> dir ( Weekday . SATURD...AY ) ['__class__', '__doc__', '__eq__', '__hash__', '__module__', 'name', 'today', 'value'] _generate_next_value_ ( name , start , count , last_values ) ¶ name : 定義されているメンバーの名前(例:'RED')。... - https://man.mtool.work/python/3.14/library/enum.html
- unittest.mock --- 入門 — Python 3.14.8 ドキュメント 8731
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p
...t mock_backend . mock_calls == call_list 部分的なモック ¶ For some tests, you may want to mock out a call to datetime.date.today() to return a known date, but don't want to prevent the code under test from creating new date objects. Unfortunately date...time.date is written in C, so you cannot just monkey-patch out the static datetime.date.today() method. Instead, you can effectively wrap the date class with a mock, while passing through calls to the constructor to...date が構築されて返されます。: >>> import datetime as dt >>> with patch ( 'mymodule.date' ) as mock_date : ... mock_date . today . return_value = dt . date ( 2010 , 10 , 8 ) ... mock_date . side_effect = lambda * args , ** kw : dt . date ( * args , **... - https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
- 10. Brief tour of the standard library — Python 3.14.8 ドキュメント 8167
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 10. Brief tour of the standard library テーマ 自動 ライト ダーク | 10. Brief tour of the standard library ¶ 10.1. Operating system interf
...ectory 'C:\\Python314' >>> os . chdir ( '/server/accesslogs' ) # Change current working directory >>> os . system ( 'mkdir today' ) # Run the command mkdir in the system shell 0 from os import * ではなく、 import os 形式を使うようにしてください。そうす...クトもサポートしています。 >>> # dates are easily constructed and formatted >>> import datetime as dt >>> now = dt . date . today () >>> now datetime.date(2003, 12, 2) >>> now . strftime ( "%m- %d -%y. %d %b %Y is a %A on the %d day of %B." ) '12-02-03... - https://man.mtool.work/python/3.14/tutorial/stdlib.html
- 10. Brief tour of the standard library — Python 3.14.8 ドキュメント 8167
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 10. Brief tour of the standard library テーマ 自動 ライト ダーク | 10. Brief tour of the standard library ¶ 10.1. Operating system interf
...ectory 'C:\\Python314' >>> os . chdir ( '/server/accesslogs' ) # Change current working directory >>> os . system ( 'mkdir today' ) # Run the command mkdir in the system shell 0 from os import * ではなく、 import os 形式を使うようにしてください。そうす...クトもサポートしています。 >>> # dates are easily constructed and formatted >>> import datetime as dt >>> now = dt . date . today () >>> now datetime.date(2003, 12, 2) >>> now . strftime ( "%m- %d -%y. %d %b %Y is a %A on the %d day of %B." ) '12-02-03... - https://man.mtool.work/python/3.14/tutorial/stdlib.html