Sha256: b4bc4b6a2cb037e5b8de86c406c6619e6066f84ea89a79e84fe6bc6b76c22dda

Contents?: true

Size: 939 Bytes

Versions: 1497

Compression:

Stored size: 939 Bytes

Contents

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

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}
      />

      <br />

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

export default TimestampElapsed

Version data entries

1,497 entries across 1,497 versions & 2 rubygems

Version Path
playbook_ui_docs-14.9.0.pre.rc.9 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-14.9.0.pre.rc.9 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui_docs-14.8.0.pre.alpha.PLAY1680newwidthprop4661 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-14.8.0.pre.alpha.PLAY1680newwidthprop4661 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui_docs-14.8.0.pre.alpha.PLAY1658tanstackbump4657 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-14.8.0.pre.alpha.PLAY1658tanstackbump4657 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui_docs-14.8.0.pre.alpha.PLAY1649rolloutheightglobalprops4635 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-14.8.0.pre.alpha.PLAY1649rolloutheightglobalprops4635 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui_docs-14.9.0.pre.rc.8 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-14.9.0.pre.rc.8 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui_docs-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4617 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4617 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui_docs-14.9.0.pre.rc.7 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-14.9.0.pre.rc.7 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui_docs-14.9.0.pre.rc.6 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-14.9.0.pre.rc.6 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui_docs-14.9.0.pre.rc.5 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-14.9.0.pre.rc.5 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui_docs-14.8.0.pre.alpha.pbntr661createstickyleftprop4612 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
playbook_ui-14.8.0.pre.alpha.pbntr661createstickyleftprop4612 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx