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-9.9.0.alpha.inline1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.9.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.8.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.7.0.pre.alphawidth1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.7.0.pre.alpha.a11y.btn app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.7.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.6.1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.6.1.pre.deps1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.6.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.5.0.alpha.rs.downgrade app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.5.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.4.0.alpha.sisense app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.4.0.alpha.user.kit.bug app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.4.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.3.1.pre.alpha2 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.4.0.pre.alpha2 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.4.0.pre.alpha1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.3.1.pre.alpha1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.3.0.alpha.inline3 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-9.3.0.pre.alpha.password.strength.2 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx