teleproto - v1.229.0
GitHub
npm
Issues
Preparing search index...
Api
TextDate
Class TextDate
Hierarchy (
View Summary
)
VirtualClass
<
{
date
:
int
;
dayOfWeek
?:
boolean
;
longDate
?:
boolean
;
longTime
?:
boolean
;
relative
?:
boolean
;
shortDate
?:
boolean
;
shortTime
?:
boolean
;
text
:
TypeRichText
;
}
,
>
TextDate
Index
Constructors
constructor
Methods
from
Reader
serialize
Bytes
serialize
Date
get
Bytes
to
JSON
Properties
class
Name
class
Type
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
class
Name
class
Type
CONSTRUCTOR_
ID
date
day
Of
Week?
long
Date?
long
Time?
original
Args
relative?
short
Date?
short
Time?
SUBCLASS_
OF_
ID
text
Constructors
constructor
new
TextDate
(
args
:
{
date
:
number
;
dayOfWeek
?:
boolean
;
longDate
?:
boolean
;
longTime
?:
boolean
;
relative
?:
boolean
;
shortDate
?:
boolean
;
shortTime
?:
boolean
;
text
:
TypeRichText
;
}
,
)
:
TextDate
Parameters
args
:
{
date
:
number
;
dayOfWeek
?:
boolean
;
longDate
?:
boolean
;
longTime
?:
boolean
;
relative
?:
boolean
;
shortDate
?:
boolean
;
shortTime
?:
boolean
;
text
:
TypeRichText
;
}
Returns
TextDate
Methods
Static
from
Reader
fromReader
(
reader
:
any
)
:
TextDate
Parameters
reader
:
any
Returns
TextDate
Static
serialize
Bytes
serializeBytes
(
data
:
string
|
Buffer
<
ArrayBufferLike
>
)
:
Buffer
Parameters
data
:
string
|
Buffer
<
ArrayBufferLike
>
Returns
Buffer
Static
serialize
Date
serializeDate
(
date
:
number
|
Date
)
:
Buffer
Parameters
date
:
number
|
Date
Returns
Buffer
get
Bytes
getBytes
()
:
Buffer
Returns
Buffer
to
JSON
toJSON
()
:
{
date
:
number
;
dayOfWeek
?:
boolean
;
longDate
?:
boolean
;
longTime
?:
boolean
;
relative
?:
boolean
;
shortDate
?:
boolean
;
shortTime
?:
boolean
;
text
:
TypeRichText
;
}
Returns
{
date
:
number
;
dayOfWeek
?:
boolean
;
longDate
?:
boolean
;
longTime
?:
boolean
;
relative
?:
boolean
;
shortDate
?:
boolean
;
shortTime
?:
boolean
;
text
:
TypeRichText
;
}
Properties
Static
class
Name
className
:
string
Static
class
Type
classType
:
"constructor"
|
"request"
Static
CONSTRUCTOR_
ID
CONSTRUCTOR_ID
:
number
Static
SUBCLASS_
OF_
ID
SUBCLASS_OF_ID
:
number
class
Name
className
:
"TextDate"
class
Type
classType
:
"constructor"
CONSTRUCTOR_
ID
CONSTRUCTOR_ID
:
2780061227
date
date
:
number
Optional
day
Of
Week
dayOfWeek
?:
boolean
Optional
long
Date
longDate
?:
boolean
Optional
long
Time
longTime
?:
boolean
original
Args
originalArgs
:
{
date
:
number
;
dayOfWeek
?:
boolean
;
longDate
?:
boolean
;
longTime
?:
boolean
;
relative
?:
boolean
;
shortDate
?:
boolean
;
shortTime
?:
boolean
;
text
:
TypeRichText
;
}
Optional
relative
relative
?:
boolean
Optional
short
Date
shortDate
?:
boolean
Optional
short
Time
shortTime
?:
boolean
SUBCLASS_
OF_
ID
SUBCLASS_OF_ID
:
4056986745
text
text
:
TypeRichText
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
from
Reader
serialize
Bytes
serialize
Date
get
Bytes
to
JSON
Properties
class
Name
class
Type
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
class
Name
class
Type
CONSTRUCTOR_
ID
date
day
Of
Week
long
Date
long
Time
original
Args
relative
short
Date
short
Time
SUBCLASS_
OF_
ID
text
GitHub
npm
Issues
teleproto - v1.229.0
Loading...