public long parseDateShorthand(String d) {
Calendar now = Calendar.getInstance();
long l=now.getTimeInMillis();
d=d.trim();
if (d.compareToIgnoreCase("now")!=0) {
Options options= new Options(false);
options.setCompatibilityMode(true);
options.setNow(now);
try {
Span span = Chronic.parse(d, options);
l = span.getBegin()*1000;
} catch (Exception e) {
// exception when parsing