# microtime2iso **Repository Path**: mirrors_defunctzombie/microtime2iso ## Basic Information - **Project Name**: microtime2iso - **Description**: convert decimal time values to iso8601 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-03-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # microtime2iso Convert decimal time values to [ISO8601](http://en.wikipedia.org/wiki/ISO_8601) ```js var microtime2iso = require('microtime2iso'); microtime2iso('1420242927.139'); // 2015-01-02T23:55:27.139Z microtime2iso(1420242927.139456); // 2015-01-02T23:55:27.139456Z microtime2iso('1420242927'); // 2015-01-02T23:55:27.000Z ``` ## API ### microtime2iso(decimal) `decimal` should be a number or number-string following the format `SSS.uuuuuu` Where `S` is seconds and `u` is microseconds. Any decimal value between 0 and 6 (microseconds) is allowed. ## License MIT