I am running a script based on exetime and exetime is saved in database in the format of following.
* * * * * *
| | | | | |
| | | | | +-- Year (range: 1900-3000)
| | | | +---- Day of the Week (range: 1-7, 1 standing for Monday)
| | | +------ Month of the Year (range: 1-12)
| | +-------- Day of the Month (range: 1-31)
| +---------- Hour (range: 0-23)
+------------ Minute (range: 0-59)
Now I need to check exetime with current
M.H.DofM.MofY.DofW.Y
each field can have two possibilies , it could be respective field or it could be a "*" . what will be the best way two check this pattern with all combination with each field having 2 possibilities.