0
whatsApp Webインターフェイスから特定の連絡先のラテン語の情報を取得するには、次のコードをChrome 63.xxビルドで実行し、コードで強調表示されている次の情報を取得します。しかし、私はそれを解釈する方法を知らない、私は最終的にt: 1513932466
の値が整数フォーマットで書かれているデータと時間の形式であると思われる。WhatsApp lastseen関数how to
私の質問は、それを人間が判読可能な形式(日付+時刻など)に変換する方法です。
Store.Wap.lastseenFind("phone_number" + '@c.us').then(function(r){ console.log(r)})
t {_flags: 0,
_value: undefined,
_onFulfilled: ƒ,
_onRejected: undefined,
_context: undefined,
…}control: undefined
x: undefined_child: undefined_children: undefined_context:
undefined_control: undefined_flags: 5_onFulfilled: ƒ (r)_onRejected:
undefined_parent: undefined_resolveLevel: 2_thenableParent: null_value:
undefined__proto__: Object
VM36:1 {t: 1513932466}
t: 1513932466__proto__: Object
これは、日付と時刻を持つ任意の変換を管理し、ロケールタイムゾーンto0を管理することができます。 –
これはUNIXのタイムスタンプです。 –
https://stackoverflow.com/a/847196/4374566 –