open-index/open-npm huggingface dataset:
npm package: @ordermentum/samay
Description: Wrapper for manipulating time with timezone offsets
Author: Anoop Varghese
Latest version: 1.0.2

### Timezone Helper

#### How to use?

```javascript
const samay = require('@ordermentum/samay');

let timestamp = timezone('Australia/Sydney');
const date = new Date(); // 2017-06-22T07:46:38.277Z
console.log(timestamp(new Date(), 'DD/MM/YYYY h:mm:ss a')); // 22/06/2017 5:46:38 pm

timestamp = timezone('Blaah');
console.log(timestamp(new Date(), 'DD/MM/YYYY h:mm:ss a')); // null

console.log(samay('Asia/Tokyo')(date, 'DD/MM/YYYY h:mm:ss [at] a')) // 22/06/2017 at 4:46:38 pm
```