with out using any perl module (POSIX MKTIME) can it be possible to convert the log4jtime stamp to millisecond or any shell command
2014-03-12 18:11:47,075 INFO BAS_Connector-thread-2 I want to convert 2014-03-12 18:11:47,075 =>millisecond
with out using any perl module (POSIX MKTIME) can it be possible to convert the log4jtime stamp to millisecond or any shell command
2014-03-12 18:11:47,075 INFO BAS_Connector-thread-2 I want to convert 2014-03-12 18:11:47,075 =>millisecond
date --date="2014-03-12 18:11:47,075" +%s --> will convert the given date string to epoch number
date --date="2014-03-12 18:11:47,075" +%s%N --> in Nanoseconds
1394662307075000000
date --date="2014-03-12 18:11:47,075" +%s%3N --> in milliseconds
1394662307075
to covert this to milliseconds,check this SO post: Linux command to get time in milliseconds