PlatformCommons

public interface PlatformCommons

This class, exposed as OSGi service, provides basic information from the server, such as MOTECH version or current time. It is also used with org.motechproject.server.CommonsDataProvider to provide common values as a data source in Tasks module.

Methods

getMotechVersion

String getMotechVersion()

Gets current MOTECH version

Returns:version of MOTECH

getNow

DateTime getNow()

Gets current date as timestamp

Returns:current date

getToday

LocalDate getToday()

Gets date of today

Returns:date of today