From 1e736fe066a5713095eae303d9b1047dec87d575 Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Mon, 19 Jun 2017 14:30:32 +0100 Subject: [PATCH] Document use of interaction 'Epoch' --- PLUGINS.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PLUGINS.md b/PLUGINS.md index d8a5a00e..737d2042 100644 --- a/PLUGINS.md +++ b/PLUGINS.md @@ -106,7 +106,8 @@ If EDMC is started while the game is already running EDMC will send the last few ``` def interaction(cmdr, entry): - sys.stderr.write("Interacted: {} with Cmdr {}\n".format(', '.join(entry['Interactions']), entry['Name'].encode('utf-8')) + # Log type of interaction, Cmdr name, and local time + sys.stderr.write("{} Cmdr {}\n".format(', '.join(entry['Interactions']), entry['Name'].encode('utf-8'), , time.strftime('%Y-%m-%dT%H:%M:%S', time.localtime(entry['Epoch'] - 11644473600)))) ``` ### Getting Commander Data