1.0.0 • Published 8 months ago

@jtorm/time-method v1.0.0

Weekly downloads
-
License
GPL-3.0
Repository
gitlab
Last release
8 months ago

jTorm Time Method

Install

npm install @jtorm/time-method

Properties

OptionTypeRequiredDescription
asdatatrueData key for mapping.
dDatetrueDate.
dTDateTimetrueDataTime.

Note: Date OR DateTime is required

Example

body->insert {
  h: '<time></time>';
  m: 'a';
  time->time(as: 'html', dT: '2020-02-20 12:00:00') {
    ->append {
      h: html;
    }
    ->attrs {
      n: 'datetime,title';
      v: o,l;
    }
  }
}
// <time datetime="2020-02-20T00:00:00.000Z" title="Thu, 20 Feb 2020 00:00:00 GMT">2 months ago</time>
1.0.0

8 months ago

0.0.4

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago