Presto
GitHub
Getting Started
Guides
Packages
View Model
Final Form
REST
Routing
UI
UI ANTD
Util
isPromise
useAsync
useAsyncListing
useAsyncValue
useChangeObserver
useListChangeObserver
Identifiable
getId
hashId
Identifiable
isIdentifiable
isSameById
Labeled
getNodeLabel
getTextLabel
isLabeled
isNodeLabeled
NodeLabeled
TextLabeled
Pagination
CursorPaginator
InferredPaginator
LimitOffsetPaginator
PageNumberPaginator
Paginator
usePaginator
Time
formatTime
parseTime
parseTime
Source
import { parseTime } from "@prestojs/util";
parseTime
(
value
)
Params:
Parameter
Type
Description
*
value
string
|
Date
Returns:
An object with these properties:
Property
Type
Description
*
hour
number
*
millisecond
number
*
minute
number
*
second
number
timezoneOffset
number