# epcisTimeZoneOffset

Industry: Core

```ts
const epcisTimeZoneOffset: RegExp = /^([+]|[-])((0[0-9]|1[0-3]):([0-5][0-9])|14:00)$/;
```

RegExp matching a GS1 EPCIS 2.0 `eventTimeZoneOffset`: the `pattern` the EPCIS JSON schema (https://ref.gs1.org/standards/epcis/epcis-json-schema.json, a normative artefact of EPCIS 2.0 / ISO/IEC 19987) gives for the field, verbatim: `^([+]|[-])((0[0-9]|1[0-3]):([0-5][0-9])|14:00)$`.

## Examples

```ts
import { epcisTimeZoneOffset } from "@northguild/gmt";
```

```ts
epcisTimeZoneOffset.test("-05:00") // true
epcisTimeZoneOffset.test("+14:00") // true
epcisTimeZoneOffset.test("+14:01") // false (past the range GS1 allows)
epcisTimeZoneOffset.test("Z") // false (a designator, not an offset)
epcisTimeZoneOffset.test("+0200") // false (no colon)
```

## Source

[regex/epcis.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/regex/epcis.ts)
