Etherpad plugin (Inserts a Unix timestamp)
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
static/js
.gitignore
README.md
ep.json
index.js
package.json

README.md

ep_insertTimestamp

Function

Inserts the current UNIX-timestamp when the user types a the string defined in triggerSequence at the beginning of a line. There is a very simple time-offset-correction implemented, which is triggered every updateInterval milliseconds.
If Starttime is defined like Starttime: YYYY-MM-DD HH:MM:SS (as defined in ISO8601) or Starttime: DD.MM.YYYY HH:MM:SS (as defined in DIN1355-1), and relativeTimestamps: true is set in the document, the timedistance from current time to defined time will inserted, instead of current timestamp.

Settings

"ep_insertTimestamp" : {
                         "updateInterval": "30000",
                         "triggerSequence": "###",
                         "replacePause": true
                       }

Sub-Settings:

  • updateInterval, defaults to 30000, -1 means no auto-updating, the interval in which the time-offset gets updated
  • triggerSequence, defaults to ###, the characters the user has to write to trigger a timestamp-insertation
  • replacePause, defaults to true, true if a OSF-pause-sequence (e.g. ###:###) should also be replaced.