unidata.js
function UnidataHeaders(d,m,e) {
	if(!d) {
		d = new Date();
	}
	if(!m) {
		m = d;
	}
	if(!e) {
		const year = 1000 * 60 * 60 * 24 * 365;
		e = new Date(m.valueOf() + year);
	} else if(typeof(e) === 'number') {
		e = new Date(m.valueOf() + e);
	}
	/**
	*	Date the database was downloaded.
	*
	*	@type {Date}
	*/
	this.date = d;
	/**
	*	Date the database was last updated on the server.
	*
	*	@type {Date}
	*/
	this.modified = m;
	/**
	*	Date the cached copy of the database is presumed to expire.
	*
	*	@type {Date}
	*/
	this.expires = e;
}
function UnidataHeaders(d,m,e) {
	if(!d) {
		d = new Date();
	}
	if(!m) {
		m = d;
	}
	if(!e) {
		const year = 1000 * 60 * 60 * 24 * 365;
		e = new Date(m.valueOf() + year);
	} else if(typeof(e) === 'number') {
		e = new Date(m.valueOf() + e);
	}
	/**
	*	Date the database was downloaded.
	*
	*	@type {Date}
	*/
	this.date = d;
	/**
	*	Date the database was last updated on the server.
	*
	*	@type {Date}
	*/
	this.modified = m;
	/**
	*	Date the cached copy of the database is presumed to expire.
	*
	*	@type {Date}
	*/
	this.expires = e;
}
function UnidataHeaders ( d , m , e ) { if ( ! d ) { d = new Date ( ) ; } if ( ! m ) { m = d ; } if ( ! e ) { const year = 1000 * 60 * 60 * 24 * 365 ; e = new Date ( m . valueOf ( ) + year ) ; } else if ( typeof ( e ) === 'number' ) { e = new Date ( m . valueOf ( ) + e ) ; } /**
	*	Date the database was downloaded.
	*
	*	@type {Date}
	*/ this . date = d ; /**
	*	Date the database was last updated on the server.
	*
	*	@type {Date}
	*/ this . modified = m ; /**
	*	Date the cached copy of the database is presumed to expire.
	*
	*	@type {Date}
	*/ this . expires = e ; }
Provides date information about the Unicode character database.

<p>If the date of last modification is not provided, the download date is used.

<p>Database expiration can be specified as a date or as a time period (in milliseconds) that
is added to the last modification date. If not provided, an expiration period of one year
is chosen.

@class
@constructor
@param d {Date} date the database was downloaded
@param m {Date} date of database last modification (optional)
@param e {Date} expiration date or period (optional)
Provides date information about the Unicode character database .