---
schema_version: "1"
id: 8178026157a9e692483f373e3498e087390198343ea0f7bd126a46ce7e044cad
title: isPeriodTimeView()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-auralocalizationservice-isperiodtimeview.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-auralocalizationservice-isperiodtimeview.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: ce0a5a7681cfd2a4da1d0de70fbf8d171c65737058b7fa7d3e416c03f1ac7841
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# isPeriodTimeView()

Deprecated. Do not use. Checks if a datetime pattern string uses a 24-hour or 12-hour time view.

## Signature

`isPeriodTimeView(string pattern)`

## Parameters

**_pattern_:** Type: `string`. A datetime pattern.

## Returns

**Type: `boolean`** Returns `true` if the pattern uses a 12-hour period time view.

