Este conteúdo não está disponível no idioma selecionado.
16.36. DateTimeFactory Interface
This interface adds methods for creating DateTime values for the current time as well as for specific instants in time:
public interface DateTimeFactory extends ValueFactory<DateTime> {
/**
* Create a date-time instance for the current time in the local time zone.
*/
DateTime create();
/**
* Create a date-time instance for the current time in UTC.
*/
DateTime createUtc();
DateTime create( DateTime original, long offsetInMillis );
DateTime create( int year, int monthOfYear, int dayOfMonth,
int hourOfDay, int minuteOfHour, int secondOfMinute, int millisecondsOfSecond );
DateTime create( int year, int monthOfYear, int dayOfMonth,
int hourOfDay, int minuteOfHour, int secondOfMinute, int millisecondsOfSecond,
int timeZoneOffsetHours );
DateTime create( int year, int monthOfYear, int dayOfMonth,
int hourOfDay, int minuteOfHour, int secondOfMinute, int millisecondsOfSecond,
int timeZoneOffsetHours, String timeZoneId );
}