torsten@472: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz torsten@472: * Software engineering by Intevation GmbH torsten@472: * torsten@472: * This file is Free Software under the GNU GPL (v>=3) torsten@472: * and comes with ABSOLUTELY NO WARRANTY! Check out torsten@472: * the documentation coming with IMIS-Labordaten-Application for details. torsten@472: */ torsten@472: torsten@297: /** torsten@297: * Helper class torsten@297: * This class provides some globally used functions. torsten@297: */ torsten@297: Ext.define('Lada.lib.Helpers', { torsten@297: statics: { torsten@297: /** torsten@297: * Function to translate a timestamp into a date torsten@297: */ raimund@491: ts2date: function(v, record) { torsten@297: // Converts a timestamp into a date object. rrenkert@402: if (v === null || v === undefined) { rrenkert@402: return v; rrenkert@402: } torsten@297: return new Date(v); torsten@297: } torsten@297: } torsten@297: })