Skip to content

isValidNotamValidity

  • Airline schedule dates in IATA SSIM files, METAR and TAF report times with no month, and NOTAM validity times.
isValidNotamValidity(value: string, options: TwoDigitYearOptions): boolean

Return true when value is a NOTAM item B) or C) value (YYMMDDHHMM, the same followed by EST, or PERM) in the stated hundred-year window.

  • True exactly when parseNotamValidity returns a value for the same arguments. It calls the parser, so the two cannot disagree.
  • PERM and EST are valid. The parser reads both. A caller checking item B) must also reject them, because OPADD 4.1 §2.3.16 allows neither as a start time.
  • It needs the window. A day is real only once its century is known: 0002290000 is valid with a window from 2000 and not with one from 1900. It is false without yearWindow, PERM included.
  • Locale-independent, as the parser is.
ParameterTypeDescription
valuestringThe value to check

options

The hundred-year window a two-digit year is read in

Type: TwoDigitYearOptions.

OptionTypeDefaultDescription
yearWindow?number | "rolling"None. A value with a two-digit year returns the sentinel: no standard says which century it belongs to, so the caller states it.The hundred-year window a two-digit year falls in. A number is the first year of a fixed window, an integer from 0 to 9900: 2000 reads 00–99 as 2000–2099; 1950 reads 50–99 as 1950–1999 and 00–49 as 2000–2049. A fixed window gives the same answer in any year, so it is the form for stored data, archives and anything re-processed later. "rolling" is the hundred years around today: from 50 years before the current UTC calendar year to 49 years after it (in 2026, 1976–2075). It is the form for live messages and never needs maintenance, but it gives a different answer for the same stored value as years pass. Any other value returns the function’s sentinel.

true for a real validity value in the window, or false on invalid input

import { isValidNotamValidity } from "@northguild/gmt/aviation/validate";
isValidNotamValidity("2506151200", { yearWindow: 2000 }) // true
output 

aviation/validate/isValidNotamValidity.ts

© 2026 NorthGuild · Licences

Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.