12345678910111213141516171819 |
- import { SYMBOL_SERVER_DATE } from '../helper/symbol';
- export class ServerDate {
- constructor({ offset = 0 } = {}) {
- this.offset = offset;
- }
- get _internalType() {
- return SYMBOL_SERVER_DATE;
- }
- parse() {
- return {
- $tcb_server_date: {
- offset: this.offset
- }
- };
- }
- }
- export function ServerDateConstructor(opt) {
- return new ServerDate(opt);
- }
|