Commit Graph

14 Commits (4d62fd1731d57b7223bdd107998f96256eb5e71f)

Author SHA1 Message Date
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 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
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
Eric Johnson 9c29b27338 Added tests for example queries which are not currently tested.
Conflicts:

	t/TimezoneConverter.t
2014-02-10 21:36:14 +00:00
Michael Smith 8c01b35797 update the tests 2013-11-13 18:55:08 -07:00
Dylan Lloyd 6e495a8afe test all unixtime triggers 2013-05-13 13:01:55 -04: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