I have created a tool to plot graphs using Perl and gnuplot. This is working fine but I just have an issue with the timefmt. I have many input data files with date and some are with time. So, I have created two separate tools with the below difference only.
For the input files which have time I used
set timefmt "%H:%M:%S"
set format x "%H:%M"
For the input files with date I used
set timefmt "%Y-%m-%d"
set format x "%Y-%m"
Is there any way to put the different timefmt at single option.