linux - Why does strftime uppercase flag '^' not work? -


i have following command $(perl -e 'use posix;print strftime "%d-%^b-%y",localtime time-86400;') works on red hat linux box, not on sun solaris 9 box.

question 1: read here, '^' provided glibc... correct?

question 2: how find out why it's not working on solaris box? (and ultimately, how make work?)

solaris not linux, although it's unix :-), system calls behave differently on different system, that's why see lots of #ifdef in c programs. can compile this c example of time functions on redhat , solaris , see difference (convert %b %^b , see not print in uppercase). best solution use perl's uc function.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -