Sha256: 27a4452c654991033a227e5988fd1b8655e9b57bcef9015268f7f24f490d28cc

Contents?: true

Size: 1.71 KB

Versions: 1619

Compression:

Stored size: 1.71 KB

Contents

![timestamp-timezones](https://github.com/powerhome/playbook/assets/92755007/119f0838-e912-473b-83de-626db1fd0d61)

```swift
VStack(alignment: .leading, spacing: Spacing.small) {
  Group {
    PBTimestamp(
      Date(),
      showDate: false,
      showTimeZone: true,
      timeZone: "America/New_York"
    )
    .frame(minWidth: minWidth, maxWidth: .infinity, alignment: .leading)

    PBTimestamp(
      Date(),
      showTimeZone: true,
      timeZone: "America/New_York"
    )
    .frame(minWidth: minWidth, maxWidth: .infinity, alignment: .leading)

    PBTimestamp(
      Date().addingTimeInterval(addThreeYear),
      showTimeZone: true,
      timeZone: "America/New_York"
    )
    .frame(minWidth: minWidth, maxWidth: .infinity, alignment: .leading)

    PBTimestamp(
      Date().addingTimeInterval(subOneYear),
      showTimeZone: true,
      timeZone: "America/New_York"
    )
    .frame(minWidth: minWidth, maxWidth: .infinity, alignment: .leading)
  }

  Group {
    PBTimestamp(
      Date(),
      showDate: false,
      showTimeZone: true,
      timeZone: "Asia/Hong_Kong"
    )
    .frame(minWidth: minWidth, maxWidth: .infinity, alignment: .leading)

    PBTimestamp(
      Date(),
      showTimeZone: true,
      timeZone: "Asia/Hong_Kong"
    )
    .frame(minWidth: minWidth, maxWidth: .infinity, alignment: .leading)

    PBTimestamp(
      Date().addingTimeInterval(addThreeYear),
      showTimeZone: true,
      timeZone: "Asia/Hong_Kong"
    )
    .frame(minWidth: minWidth, maxWidth: .infinity, alignment: .leading)

    PBTimestamp(
      Date().addingTimeInterval(subOneYear),
      showTimeZone: true,
      timeZone: "Asia/Hong_Kong"
    )
    .frame(minWidth: minWidth, maxWidth: .infinity, alignment: .leading)
  }
}
```

Version data entries

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

Version Path
playbook_ui-14.12.0.pre.alpha.PLAY1888initializeOncereactdatepickerslowdown5956 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.13.0.pre.rc.10 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.13.0.pre.rc.10 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.13.0.pre.rc.9 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.13.0.pre.rc.9 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.12.0.pre.alpha.playrailsinputmaskissue5933 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.12.0.pre.alpha.playrailsinputmaskissue5933 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.12.0.pre.alpha.PBNTR834advtablemaxHeightstickyheader5932 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.12.0.pre.alpha.PBNTR834advtablemaxHeightstickyheader5932 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.13.0.pre.rc.8 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.13.0.pre.rc.8 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.12.0.pre.alpha.play1887homeaddressfix5910 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.12.0.pre.alpha.play1887homeaddressfix5910 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.12.0.pre.alpha.PBNTR8335906 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.12.0.pre.alpha.PBNTR8335906 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.12.0.pre.alpha.play1849cssbargraph5901 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.12.0.pre.alpha.play1849cssbargraph5901 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.13.0.pre.rc.7 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui-14.13.0.pre.rc.7 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
playbook_ui_docs-14.12.0.pre.alpha.play1753updatepbcontenttags5889 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md