Changeset 529 in tmcsimulator for trunk


Ignore:
Timestamp:
11/19/2019 06:58:11 PM (6 years ago)
Author:
jdalbey
Message:

Coordinator.java: Add the date and time to the content of the "Simulation Started message". Fixes #189.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/cadsimulator/Coordinator.java

    r524 r529  
    276276            } 
    277277            // combine all the log entry fields 
     278            final DateFormat datetimeFmt = new SimpleDateFormat("d MMM yyyy HH:mm:ss"); 
    278279            final DateFormat timeFormat = new SimpleDateFormat("HH:mm:ss"); 
    279280            String logItem = timeFormat.format(new Date()) 
    280281                    + " CAD log, " 
    281                     + "Simulation Started,  loaded incidents " 
     282                    + "Simulation Started at " 
     283                    + datetimeFmt.format(new Date()) 
     284                    + " with incidents " 
    282285                    + incNums + "\n"; 
    283286            simMgrMsgLog.add(logItem); // add the item to the msg log 
Note: See TracChangeset for help on using the changeset viewer.