First Date/can't Relate Mac OS

broken image
First date/can
First Date/can
I dont understand why this command gives an error:
date -j -f '%Y%m%d%H%M%S' '20091101201023' '+%s'
Failed conversion of ``20091101201023' using format ``%Y%m%d%H%M%S'
date: illegal time format
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ..
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
But this i ok:
date -j -f '%Y %m %d %H %M %S' '2009 11 01 20 10 23' '+%s'
1257106223
The commands in Mac Os X are a bit different than in Linux that im am used to. Makes it somewhat difficult to script in the shell.
20091101201023 is the format of the date that i get from a file and i want to convert it in a script to seconds since epoc among other things.
Is it possible with the date command? Or is there some replacement for the date command in the terminal?

First Date/can't Relate Mac Os Catalina

First Date/can't Relate Mac Os 11

This works: date -j -vJulm -v20d -v1999y '+%A' According to the OSX date manual page::-v Adjust (i.e., take the current date and display the result of the adjustment; not actually set the date) the second, minute, hour, month day, week day, month or year according to val. The eternal cold mac os. AppleCare can also provide you details if you give them your serial number. They have manufacture date, sale date (sometimes inaccurate) and possibly if the user runs the 'Mac Buddy' setup assistant and registers the Mac online during the first boot. Mac OS, operating system (OS) developed by the American computer company Apple Inc. The OS was introduced in 1984 to run the company's Macintosh line of personal computers (PCs). The Macintosh heralded the era of graphical user interface (GUI) systems, and it inspired Microsoft Corporation to develop its own GUI, the Windows OS. 'Parallels Desktop is the easiest, fastest, and most tightly integrated app for running Windows apps or the Windows desktop in Apple OS X.'Edward Mendelson, PCMag.com 'The latest version of Parallels, the popular Windows virtualization tool for Mac OS X, almost feels like its trolling Apple.'Engadget.





broken image