Commit Graph

24 Commits (240961711e98072160e6030607ccb760ab4d4697)

Author SHA1 Message Date
Rob Emery 56c5ea4a5e Goodies: Enabling `use strict` on all goodies 2015-02-22 20:09:29 +00:00
jagtalon 981538c7c1 Attribution updates!
The string in index 1 should be the name of the developer. This allows us to group them together, i.e., we need a way to group the attribution by people.
2015-01-07 18:24:47 +00:00
Steven Glick 58650f52fc Add triggers
Added "utc time", "current utc", and "utc now" to list of triggers.
https://duck.co/ideas/idea/4585/current-utc-time
2014-11-21 19:50:37 -05:00
Matt Miller 85db003108 UnixTime: expand triggering.
- Allow for triggers at either end.
- Allow for negative epochs.
- Replace regex trigger with words trigger.
2014-09-25 11:51:57 -04:00
Matt Miller f0410ac6f4 UnixTime: try yet another style.
HTML version unabashedly stolen from SubnetCalc.

Thanks to @mintsoft for the suggestion.
2014-09-21 09:37:19 -04:00
Matt Miller ede57fceda UnixTime: apply HTML table and styling.
An attempt to get a nicer look.
2014-09-12 08:41:48 -04:00
Matt Miller 4d62fd1731 UnixTime: switch to regex trigger.
This seemed like the easiest way to not trigger on an empty "epoch" or
"timestamp" but to work with all the other combos.
2014-09-12 08:33:52 -04:00
Matt Miller 53317244bc UnixTime: clean up eval a bit.
- Don't handle milliseconds with such a blunt trigger.  That's just
  plain silly.
- Replace `eval` with `try` from Try::Tiny.
2014-09-12 08:33:52 -04:00
Matt Miller ad56e5c9c1 UnixTime: update comment. 2014-09-12 08:33:52 -04:00
Matt Miller 31e99b9370 UnixTime: remove `time` trigger.
This eliminates the conflict with the preferred W|A answer.

Addresses #607.
2014-09-12 08:33:52 -04:00
Matt Miller a71a6132a9 UnixTime: update output to include the epoch.
This is in service to some submarine commits which will be arriving soon
to deal with Goodies templating.  This makes UnixTime look "more like it
will" in addition to supplying what we determined to be the supplied
epoch.

This is most useful in the "empty" epoch case where we will tell them
the current epoch which may be of interest.
2014-09-12 08:33:52 -04:00
jagtalon 80ee10d13a UnixTime: Disable the no argument feature.
Disabling the no argument feature since:
- It triggers with just "time"
- The time shown doesn't follow the person's timezone (which is preferable over UTC)
2014-08-25 19:01:46 +00:00
Matt Miller 184fed9fc5 UnixTime: subsume Epoch.pm functions.
There's no need to have a different Goodie to handle the "no remainder"
query case, so we'll just combine both into this single Goodie.

Also makes the goodie slightly more resilient against bad inputs by
`eval`ing all the way up through the DateTime creation and string
gathering.
2014-08-22 11:37:06 -04:00
Matt Miller 5481cf4ebc Fix minor code layout issues.
Reducing scroll spam from dzil by:

- Providing ABSTRACTs for all packages.
- Leaving VERSION vertical space where necessary.

Addresses #600 plus other annoyances in the process.
2014-08-20 14:45:33 -04:00
Rob Emery c233d0ed48 UnixTime: Adding new triggers 2014-05-11 16:50:36 +01:00
Rob Emery 1d8905d4a0 Revert "UnixTime: Adding extra triggers"
This reverts commit e7a9fd4421.
2014-05-11 16:45:25 +01:00
Rob Emery e7a9fd4421 UnixTime: Adding extra triggers 2014-05-11 16:38:48 +01:00
Michael Smith d7cfc3ac5d Let's not cache time in UnixTime either 2013-11-13 18:54:14 -07:00
Michael Smith 83a44c61e4 Add metadata to some more goodies 2012-11-06 14:22:53 -07:00
Gaganpreet e74ddda437 Changed %m to %d to show date 2012-06-19 21:14:53 +05:30
Torsten Raudssus 9d72a38dcd Cleanup, adding multiword trigger, checking for html encoded requirements (non there hehe) 2012-05-24 04:05:08 +02:00
Dylan Lloyd c9ef973474 UnixTime now returns Coordinated Universal Time
Updated tests. Added time zone as hour offset from UTC to avoid
confusion between acronyms.
2012-05-14 00:00:19 -04:00
Iain Nash fc5780132e Adding on the perfix 'Unix Time Conversion: ' to the result 2012-04-24 00:52:16 -04:00
Iain Nash 13c3946986 Adding ddg UnixTime goodie 2012-04-23 23:05:49 -04:00