All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.hsac.fitnesse.symbols.YearsFromToday Maven / Gradle / Ivy

There is a newer version: 1.32.11
Show newest version
package nl.hsac.fitnesse.symbols;

import fitnesse.wikitext.parser.Today;

import java.util.Calendar;

/**
 * Our version of !today, that allows us to specify years instead of days.
 * Usage: !yearsFromToday [(format)] [+|-increment]
 */
public class YearsFromToday extends Today {
    public YearsFromToday() {
        super("YearsFromToday", "!yearsFromToday", Calendar.YEAR);
    }

    public YearsFromToday(String symbolName, String symbolText)  {
        super(symbolName, symbolText, Calendar.YEAR);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy