Convert 24/12 Hr. time string to a unique number

Converts a string like '14:21:3:221" to a unique integer number.

You are now following this Submission

The integers run from 0 to 86399999 corresponding to 00:00:00:000 to 23:59:59:999 respectively.
List of functions used:
isstrprop
strtok
str2num
strcmp

Cite As

Aniket (2026). Convert 24/12 Hr. time string to a unique number (https://uk.mathworks.com/matlabcentral/fileexchange/22613-convert-24-12-hr-time-string-to-a-unique-number), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0