{\itshape number} primitive which is a valid {\itshape time value} (as used internally in {\itshape Date} instances)\hypertarget{md_sfcode_node_modules_ext_node_modules_type_docs_time_value_autotoc_md9991}{}\doxysection{$<$tt$>$time-\/value/coerce$<$/tt$>$}\label{md_sfcode_node_modules_ext_node_modules_type_docs_time_value_autotoc_md9991}
Follows \href{integer.md\#integercoerce}{\texttt{ {\ttfamily integer/coerce}}} but returns {\ttfamily null} in place of values which go beyond 100 000 0000 days from unix epoch


\begin{DoxyCode}{0}
\DoxyCodeLine{const coerceToTimeValue = require("{}type/time-\/value/coerce"{});}
\DoxyCodeLine{}
\DoxyCodeLine{coerceToTimeValue(12312312); // true}
\DoxyCodeLine{coerceToTimeValue(Number.MAX\_SAFE\_INTEGER); // false}
\DoxyCodeLine{coerceToTimeValue("{}foo"{}); // false }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_ext_node_modules_type_docs_time_value_autotoc_md9992}{}\doxysection{$<$tt$>$time-\/value/ensure$<$/tt$>$}\label{md_sfcode_node_modules_ext_node_modules_type_docs_time_value_autotoc_md9992}
If given argument is a {\itshape time value} coercible value (via \href{\#time-valuecoerce}{\texttt{ {\ttfamily time-\/value/coerce}}}) returns result number. Otherwise {\ttfamily Type\+Error} is thrown.


\begin{DoxyCode}{0}
\DoxyCodeLine{const ensureTimeValue = require("{}type/time-\/value/ensure"{});}
\DoxyCodeLine{}
\DoxyCodeLine{ensureTimeValue(12.93); // "{}12"{}}
\DoxyCodeLine{ensureTimeValue(Number.MAX\_SAFE\_INTEGER); // Thrown TypeError: null is not a natural number }

\end{DoxyCode}
 