"date" difference between FreeBSD & Linux - Page 2 | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

"date" difference between FreeBSD & Linux

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #8  
Old 10-14-2010
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 30 July 2014, 5:10 AM EDT
Location: /dev/ph
Posts: 4,773
Thanks: 59
Thanked 423 Times in 392 Posts
Quote:
The moon is a whole new family of calculations, perhaps best left to the rabbi, imam or Pope!
Interestingly, there is such a class for PHP: Moon Phase
Sponsored Links
    #9  
Old 10-15-2010
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 31 July 2014, 4:55 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,390
Thanks: 8
Thanked 535 Times in 514 Posts
I guess you can get very close with UNIX time, a sine function and the right floating point factor, but if your calc puts Ramadan, Lent, Rosh Hashanah a month off because it varies by observation longitude and such and occasionally comes very close to falling either way . . . .

---------- Post updated at 11:29 AM ---------- Previous update was at 11:17 AM ----------

Lunar calendar - Wikipedia, the free encyclopedia
Sponsored Links
    #10  
Old 10-15-2010
Corona688 Corona688 is online now Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 31 July 2014, 5:21 PM EDT
Location: Saskatchewan
Posts: 19,035
Thanks: 755
Thanked 3,160 Times in 2,964 Posts
Your utility assumes a 32-bit time type, and has lots of bugs on 64-bit platforms where the 2038 limit no longer applies; but is so complicated I'm not sure where to begin fixing it. I've fixed it to the point where it outputs random times instead of segfaulting..
    #11  
Old 10-16-2010
agama agama is offline Forum Advisor  
Always Learning
 
Join Date: Jul 2010
Last Activity: 7 April 2014, 3:02 PM EDT
Location: earth>US>UTC-5
Posts: 1,466
Thanks: 110
Thanked 506 Times in 485 Posts
Quote:
Originally Posted by DGPickett View Post
Yes, the David Korn is still with us, and getting the newer ksh opens a lot of new doors. Maybe BASH will pick up more ksh-isms. I am still a ksh guy, by immersion and satisfaction, especially on systems with <() = systems with /dev/fd/# like Solaris.
I agree -- it's very frustrating to work with bash after enjoying the features of Kshell.

If anybody is interested in keeping up with Kshell or AST (a set of software tools from AT&T Labs Research) you can join one of the mailing lists listed on this page:

AT&T Research AST and UWIN mailing groups

I think this is a worthwhile mailing list to belong to.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
difference between "root" and "usr" packages masloff Solaris 6 04-02-2010 11:31 AM
what difference between "terminal" and "console" chenhao_no1 Programming 1 09-09-2002 09:46 AM



All times are GMT -4. The time now is 05:38 PM.