Sha256: b18ccc47ba393e64b8b7c888798f4dea3fa440676455a0c7e4dd2dfaea52e0da

Contents?: true

Size: 1.62 KB

Versions: 27

Compression:

Stored size: 1.62 KB

Contents

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

const TimestampTimezones = (props) => {
  return (
    <div>
      <Timestamp
          align="left"
          showDate="false"
          showTimezone="true"
          timestamp={new Date().getTime()}
          timezone="America/New_York"
          {...props}
      />

      <br />

      <Timestamp
          align="left"
          showDate="true"
          showTimezone="true"
          timestamp={new Date().getTime()}
          timezone="America/New_York"
          {...props}
      />

      <br />

      <Timestamp
          align="left"
          showDate="true"
          showTimezone="true"
          timestamp={new Date((new Date()).getFullYear() + 4, (new Date().getMonth()), (new Date().getDate() + 1)).getTime()}
          timezone="America/New_York"
          {...props}
      />

      <br />

      <Timestamp
          align="left"
          showDate="false"
          showTimezone="true"
          timestamp={new Date().getTime()}
          timezone="Asia/Hong_Kong"
          {...props}
      />

      <br />

      <Timestamp
          align="left"
          showDate="true"
          showTimezone="true"
          timestamp={new Date().getTime()}
          timezone="Asia/Hong_Kong"
          {...props}
      />

      <br />

      <Timestamp
          align="left"
          showDate="true"
          showTimezone="true"
          timestamp={new Date((new Date()).getFullYear() + 4, (new Date().getMonth()), (new Date().getDate() + 1)).getTime()}
          timezone="Asia/Hong_Kong"
          {...props}
      />
    </div>
  )
}

export default TimestampTimezones

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
playbook_ui-7.14.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.13.0.pre.alpha1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.13.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.12.1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.12.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.11.1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.11.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.10.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.9.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.8.4 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.8.3 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.8.2 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.8.1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.8.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.7.0.pre.alpha1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.7.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.6.2.pre.alpha1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.6.2 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
playbook_ui-7.6.1.pre.alpha1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx