If you have Matlab code that trades the markets and needs to know what time it is on the New York Stock Exchange, nnow.m will give it to you no matter where you are in the world, requiring no configuration.
It is used just like "now" and similarly returns a datenum-formatted time that is always US Eastern Timezone no matter where you are in the world.
Paul Shoemaker (2021). nnow (https://www.mathworks.com/matlabcentral/fileexchange/68282-nnow), MATLAB Central File Exchange. Retrieved .
Inspired by: Timezone Convert by Erwin Mayer with vector support
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.