lib - datetime

 0    28 フィッシュ    sir
mp3をダウンロードする 印刷 遊びます 自分をチェック
 
質問 język polski 答え język polski
Class creating datetime objects.
学び始める
datetime
Class for measuring time delta.
学び始める
timedelta
Method which returns current date & time.
学び始める
datetime. today() / datetime. now()
Attributes of datetime object. Which you can use to get concrete time unit.
学び始める
. year,. month,. day,. hour, minute, second etc...
Weekday, short version
Wed
学び始める
%a
Weekday NAME, full version
Wednesday
学び始める
%A
Weekday as a number 0-6, 0 is Sunday
3
学び始める
%w
Day of month 01-31
31
学び始める
%d
Month name, short version
Dec
学び始める
%b
Month name, full version
December
学び始める
%B
Month as a number 01-12
12
学び始める
%m
Year, short version, without century
18
学び始める
%y
Year, full version
2018
学び始める
%Y
Hour 00-23
17
学び始める
%H
Hour 00-12
5
学び始める
%I
AM/PM
PM
学び始める
%p
Minute 00-59
41
学び始める
%M
Second 00-59
8
学び始める
%S
Microsecond 000000-999999
548513
学び始める
%f
UTC offset
100
学び始める
%z
Timezone
CST
学び始める
%Z
Day number of year 001-366
365
学び始める
%j
Week number of year, Sunday as the first day of week, 00-53
52
学び始める
%U
Week number of year, Monday as the first day of week, 00-53
52
学び始める
%W
Local version of date and time
Mon Dec 31 17:41:00 2018
学び始める
%c
Local version of date
12/31/18
学び始める
%x
Local version of time
17:41:00
学び始める
%X
A % character
%
学び始める
%%

コメントを投稿するにはログインする必要があります。