Solaris portability tweaks.
Update Solaris changes to use OSTYPE and zsh datetime  module.
Convert epoch_target from days to seconds.
Change to epoch target in days instead of seconds.
Merge pull request #2946 from moinakg/master

Solaris portability tweaks.