JSJaC

## Class Date

    Object
       |
       +--Date

class Date

Method Summary
`String` | `jabberDate()` somewhat opposit to hrTime() expects a javascript Date object as parameter and returns a jabber date string conforming to XEP-0082
`<static> Object` | `hrTime(ts)` Takes a timestamp in the form of 2004-08-13T12:07:04+02:00 as argument and converts it to some sort of humane readable format
`<static> Date` | `jab2date(<String> ts)` Converts from jabber timestamps to JavaScript Date objects

Method Detail

### jabberDate

    String jabberDate()

somewhat opposit to hrTime() expects a javascript Date object as parameter and returns a jabber date string conforming to XEP-0082

Returns:

The corresponding jabber DateTime string

See:

- hrTime()

### hrTime

    <static> Object hrTime(ts)

Takes a timestamp in the form of 2004-08-13T12:07:04+02:00 as argument and converts it to some sort of humane readable format

### jab2date

    <static> Date jab2date(<String> ts)

Converts from jabber timestamps to JavaScript Date objects

Parameters:

`ts` - A string representing a jabber datetime timestamp as defined by XEP-0082

Returns:

A javascript Date object corresponding to the jabber DateTime given

JSJaC

Documentation generated by JSDoc on Tue Jan 5 02:48:26 2021