Sha256: f7452539d5da7076243cd99c92f2f6a072336d7d08028c37a8a266be5ac05e08

Contents?: true

Size: 771 Bytes

Versions: 189

Compression:

Stored size: 771 Bytes

Contents

import React from 'react'
import Timestamp from '../_timestamp.jsx'

const todaysDate = new Date()
const year = new Date().getFullYear()
const month = new Date().getMonth()
const date = new Date().getDate()
const hours = new Date().getHours() - 10
const minutes = new Date().getMinutes()
const customDate = new Date(year, month, date, hours, minutes)

const TimestampElapsed = (props) => {
  return (
    <div>
      <Timestamp
          showUser
          text="Maricris Nonato"
          timestamp={todaysDate}
          variant="elapsed"
          {...props}
      />

      <br />

      <Timestamp
          showUser={false}
          timestamp={customDate}
          variant="elapsed"
          {...props}
      />
    </div>
  )
}

export default TimestampElapsed

Version data entries

189 entries across 189 versions & 1 rubygems

Version Path
playbook_ui-11.0.1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-11.0.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-11.0.0.pre.alpha.2 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-11.0.0.pre.alpha.1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-10.26.1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-10.27.0.pre.lazysizes1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-10.27.0.pre.datepicker1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-10.26.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-10.26.0.pre.alpha5 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-10.26.0.pre.rc1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-10.26.0.pre.alpha.sticky1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-10.26.0.pre.alpha.display1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-10.26.0.pre.alpha3 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-10.25.1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-10.26.0.pre.alpha1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-10.25.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-10.25.0.pre.alpha3 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-10.25.0.pre.treeshaking1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-10.24.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-10.24.0.pre.alpha1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx