summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-12Merge branch 'irc-input-fix' into 'master' HEADmasterLuke Bratch
Irc input fix Handles IRC input where the arguments are received as a single string, regardless of spaces. If there is one argument it will split it on spaces. See merge request !2
2017-07-12Improve handling of milliseconds to handle any lengthJoe Robinson
2017-07-12Handle IRC single argument inputJoe Robinson
2017-07-12Handle argument being an empty string in the same way as undefinedJoe Robinson
2017-07-12Merge branch 'milliseconds' into 'master' Luke Bratch
Milliseconds Added 3 new functions: **Print the current unix timestamp** Run the script with no arguments e.g: joe@phobos ~/blatech/unixtime $ ./unixtime.pl 1499865953 **Convert from time since the Unix epoch, given in milliseconds** Run the script with a timestamp in milliseconds, and add a second argument "ms" e.g: joe@phobos ~/blatech/unixtime $ ./unixtime.pl 1499865571123 ms Wed Jul 12 14:19:31:123 BST 2017 **Print the current time since the Unix epoch in milliseconds** Run the script only with the argument "ms" e.g: joe@phobos ~/blatech/unixtime $ ./unixtime.pl ms 1499866043745 See merge request !1
2017-07-12Add some spaces on string concatenation to be consistentJoe Robinson
2017-07-12Add commentsJoe Robinson
2017-07-12Add options to convert and print milliseconds, and to show the current unixtimeJoe Robinson
2015-08-10Output line break at end of lineLuke Bratch
2015-08-10Rename to .pl as now a proper Perl scriptLuke Bratch
2015-08-10Provide timezone in outputLuke Bratch
2015-08-10Initial commitLuke Bratch