Friday, December 6, 2024
HomeProgrammingThe right way to Set Date Time from Mac Command Line

The right way to Set Date Time from Mac Command Line


Engaged on an internet 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 generally have to bake in hardcoded date-based logic. Testing future dates will be tough if you do not know the way to rapidly change the date in your native machine.

To vary 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 simple as nicely!

  • Vibration API

    Lots of the new APIs supplied to us by browser distributors are extra focused towards the cell person than the desktop person.  A kind of easy APIs the Vibration API.  The Vibration API permits builders to direct the machine, utilizing JavaScript, to vibrate in…

  • Create a Sheen Logo Effect with CSS
  • MooTools Zebra Tables Plugin

    Tabular knowledge can oftentimes be boring, however it does not have to look that method! With a small MooTools class, I could make tabular knowledge extraordinarily straightforward to learn by implementing “zebra” tables — tables with alternating row background colours. The CSS The above CSS is extraordinarily fundamental.

  • Multiple Background CSS Animations

    CSS background animation has been a sizzling subject for a very long time, principally as a result of they appear fairly candy and do not require further components.  I used to be not too long ago requested if it was attainable to have a number of background animations on a given factor and the reply is sure…with…


RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments