mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 20:54:29 +08:00
62 lines
1.7 KiB
Python
62 lines
1.7 KiB
Python
from datetime import datetime
|
|
from typing import Any, Optional, Union
|
|
|
|
re_formatchars: Any
|
|
re_escaped: Any
|
|
|
|
class Formatter:
|
|
def format(self, formatstr: str) -> str: ...
|
|
|
|
class TimeFormat(Formatter):
|
|
data: Union[datetime.datetime, str] = ...
|
|
timezone: Optional[django.utils.timezone.FixedOffset] = ...
|
|
def __init__(self, obj: Union[datetime, str]) -> None: ...
|
|
def a(self) -> str: ...
|
|
def A(self) -> str: ...
|
|
def B(self) -> None: ...
|
|
def e(self) -> str: ...
|
|
def f(self) -> Union[int, str]: ...
|
|
def g(self) -> int: ...
|
|
def G(self) -> int: ...
|
|
def h(self) -> str: ...
|
|
def H(self) -> str: ...
|
|
def i(self) -> str: ...
|
|
def O(self) -> str: ...
|
|
def P(self) -> str: ...
|
|
def s(self) -> str: ...
|
|
def T(self) -> str: ...
|
|
def u(self) -> str: ...
|
|
def Z(self) -> Union[int, str]: ...
|
|
|
|
class DateFormat(TimeFormat):
|
|
data: Union[datetime.datetime, str]
|
|
timezone: Optional[django.utils.timezone.FixedOffset]
|
|
year_days: Any = ...
|
|
def b(self): ...
|
|
def c(self) -> str: ...
|
|
def d(self) -> str: ...
|
|
def D(self): ...
|
|
def E(self): ...
|
|
def F(self): ...
|
|
def I(self) -> str: ...
|
|
def j(self) -> int: ...
|
|
def l(self): ...
|
|
def L(self) -> bool: ...
|
|
def m(self) -> str: ...
|
|
def M(self) -> str: ...
|
|
def n(self) -> int: ...
|
|
def N(self): ...
|
|
def o(self) -> int: ...
|
|
def r(self) -> str: ...
|
|
def S(self) -> str: ...
|
|
def t(self) -> str: ...
|
|
def U(self) -> int: ...
|
|
def w(self) -> int: ...
|
|
def W(self) -> int: ...
|
|
def y(self) -> str: ...
|
|
def Y(self) -> int: ...
|
|
def z(self) -> int: ...
|
|
|
|
def format(value: Union[datetime, str], format_string: str) -> str: ...
|
|
def time_format(value: Union[datetime, str], format_string: str) -> str: ...
|