14.2 C
New York
Sunday, September 8, 2024

Set Date Time from Mac Command Line


Engaged on an online extension that ships to an app retailer and is not instantly modifiable, like a web site, will be tough. Since you can not instantly deploy updates, you typically have to bake in hardcoded date-based logic. Testing future dates will be tough if you do not know methods to shortly change the date in your native machine.

To alter the present date in your Mac, execute the next from command line:

# Date Format:  MMDDYYYY
sudo date -I 06142024

This command doesn’t modify time, solely the present date. Utilizing the identical command to reset to present date is straightforward as effectively!

  • Resize an Image Using Canvas, Drag and Drop and the File API

    Just lately I used to be requested to create a person interface that permits somebody to add a picture to a server (amongst different issues) in order that it might be used within the varied internet sites my firm supplies to its purchasers. Usually this is able to be a straightforward job—create a…

  • HTML5 download Attribute

    I are likely to get caught up on the JavaScript aspect of the HTML5 revolution, and may you blame me?  HTML5 provides us superior “massive” stuff like WebSockets, Net Employees, Historical past, Storage and little helpers just like the Aspect classList assortment.  There are, nonetheless, smaller options in…


Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles