PHP Classes

File: public/js/tinymce/src/plugins/autosave/src/main/js/core/Time.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/plugins/autosave/src/main/js/core/Time.js   Download  
File: public/js/tinymce/src/plugins/autosave/src/main/js/core/Time.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 589 bytes
 

Contents

Class file image Download
/** * Time.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ define( 'tinymce.plugins.autosave.core.Time', [ ], function () { var parse = function (time, defaultTime) { var multiples = { s: 1000, m: 60000 }; time = /^(\d+)([ms]?)$/.exec('' + (time || defaultTime)); return (time[2] ? multiples[time[2]] : 1) * parseInt(time, 10); }; return { parse: parse }; } );