You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return the local time. e.g. `'Sat Jun 06 16:26:11 1998'`
25
+
Return the local time format. e.g. 'Sat Jun 06 16:26:11 1998' or format the combined date and time per the specified format string, and the default date format is `%a %b %d %H:%M:%S %Y`.
26
26
27
27
## today
28
28
29
29
`today() -> str`
30
30
31
31
Return the `%Y-%m-%d %H:%M:%S.%{ticks}` format date.
32
+
33
+
## validate
34
+
35
+
`validate(date: str, format: str) -> bool`
36
+
37
+
Validate whether the provided date string matches the specified format.
Return the local time. e.g. `'Sat Jun 06 16:26:11 1998'`
25
+
Return the local time format. e.g. 'Sat Jun 06 16:26:11 1998' or format the combined date and time per the specified format string, and the default date format is `%a %b %d %H:%M:%S %Y`.
26
26
27
27
## today
28
28
29
29
`today() -> str`
30
30
31
31
Return the `%Y-%m-%d %H:%M:%S.%{ticks}` format date.
32
+
33
+
## validate
34
+
35
+
`validate(date: str, format: str) -> bool`
36
+
37
+
Validate whether the provided date string matches the specified format.
0 commit comments