import { DateFormatter , DateFormattingContext , createVerboseFormattingArg } from './DateFormatter' ; import { ZonedMarker } from './zoned-marker' ; export class CmdFormatter implements DateFormatter { cmdStr : string ; constructor ( cmdStr ) { this . cmdStr = cmdStr ; } format ( date , context , betterDefaultSeparator ? ) { return context . cmdFormatter ( this . cmdStr , createVerboseFormattingArg ( date , null , context , betterDefaultSeparator ) ) ; } formatRange ( start , end , context , betterDefaultSeparator ? ) { return context . cmdFormatter ( this . cmdStr , createVerboseFormattingArg ( start , end , context , betterDefaultSeparator ) ) ; } }