Home
last modified time | relevance | path

Searched refs:DateInfo (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/sdk/
H A Dpersistent_storage.ts120 class DateInfo {
130 static isObject(obj: unknown): obj is DateInfo {
131 const typedObject = obj as DateInfo;
133 …(typedObject.dateReplacer === DateInfo.replacer || typedObject.dateReplacer === DateInfo.replacerC…
140 static toObject(date: Date): DateInfo {
141 return new DateInfo(DateInfo.replacer, date.toISOString());
145 static toDate(obj: DateInfo): Date {
429 value = DateInfo.toObject(value) as unknown as T;
446 } else if (DateInfo.isObject(newValue)) {
447 newValue = DateInfo.toDate(newValue) as unknown as T;
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DstateMgmt.js1605 class DateInfo { class
1614 …(typedObject.dateReplacer === DateInfo.replacer || typedObject.dateReplacer === DateInfo.replacerC…
1621 return new DateInfo(DateInfo.replacer, date.toISOString());
1628 DateInfo.replacer = '_____date_replacer__';
1629 DateInfo.replacerCompatible = "ace_engine_state_mgmt_date_replacer";
1863 value = DateInfo.toObject(value);
1881 else if (DateInfo.isObject(newValue)) {
1882 newValue = DateInfo.toDate(newValue);