regex_time {vvauditor}R Documentation

Generate regular expression of a time.

Description

This function generates a regular expression for time based on the input format.

Usage

regex_time(format = "hh:mm")

Arguments

format

The format of the time. Possible values are:

  • "hh:mm": to generate "09:05".

  • "h:m": to generate "9:5".

  • "hh:mm:ss": to generate "09:05:00".

  • "h:m:s": to generate "9:5:0".

  • "hh:mm:ss AM/PM": to generate "09:05:00 AM".

  • "h:m:s AM/PM": to generate "9:5:0 AM".

Value

A regular expression.

Examples

regex_time("hh:mm")
regex_time("h:m")
regex_time("hh:mm:ss")
regex_time("h:m:s")
regex_time("hh:mm:ss AM/PM")
regex_time("h:m:s AM/PM")


[Package vvauditor version 0.6.0 Index]