epoch-timestamp-utility
v1.0.1
Published
This library built on the top of moments and normal javascript Date object to make epoch timestamp use easy
Downloads
2
Maintainers
Readme
��#� �E�p�o�c�h� �T�i�m�e�s�t�a�m�p� �U�t�i�l�i�t�y� �W�i�t�h� �T�i�m�e�z�o�n�e�
�
�
�
�T�h�i�s� �s�i�m�p�l�e� �l�i�b�r�a�r�y� �w�i�l�l� �b�e� �s�i�m�p�l�i�f�i�e�d� �o�u�r� �d�a�i�l�y� �u�s�e� �e�p�o�c�h� �t�i�m�e�s�t�a�m�p� �t�a�s�k� �i�n� �s�i�m�p�l�e� �s�t�e�p�s�.�
�
�
�
�I�n�s�t�a�l�l�a�t�i�o�n� �s�t�e�p�
�
�
�
��
��
�
�n�p�m� �i�n�s�t�a�l�l� �e�p�o�c�h�-�t�i�m�e�s�t�a�m�p�-�u�t�i�l�i�t�y�
�
� �
��
�
�
�
�
�N�o�w� �r�e�q�u�i�r�e� �t�h�i�s� �l�i�b�r�a�r�y� �i�n� �y�o�u�r� �w�o�r�k�i�n�g� �f�i�l�e�.�
�
��
��
�
�c�o�n�s�t� �e�p�o�c�h�T�i�m�e� �=� �r�e�q�u�i�r�e�(�'�e�p�o�c�h�-�t�i�m�e�s�t�a�m�p�-�u�t�i�l�i�t�y�)�;�
�
�
��
�
�
�
�
�#�#� �E�x�a�m�p�l�e�
�
�
�
��
��
�
�c�o�n�s�o�l�e�.�l�o�g�(�e�p�o�c�h�T�i�m�e�.�e�p�o�c�h�T�o�D�a�t�e�T�i�m�e�(�1�7�0�3�0�1�2�4�5�1�,� �'�D�D�-�M�-�Y�Y�Y�Y� �|� �h�h�:�m�m�:�s�s� �a�'�)�)�;� �/�/� �2�0�-�1�2�-�2�0�2�3� �|� �1�2�:�3�0�:�5�1� �a�m�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�e�p�o�c�h�T�i�m�e�.�e�p�o�c�h�T�o�D�a�t�e�T�i�m�e�(�1�7�0�3�0�1�0�6�0�0�,� �'�D�D�-�M�M�M�-�Y�Y�Y�Y� �|� �h�h�:�m�m�:�s�s� �a�'�)�)�;� �/�/�2�0�-�D�e�c�-�2�0�2�3� �|� �1�2�:�0�0�:�0�0� �a�m�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�e�p�o�c�h�T�i�m�e�.�e�p�o�c�h�T�o�D�a�t�e�T�i�m�e�(�1�7�0�2�8�3�8�2�0�3�,� �'�D�D�-�M�M�M�-�Y�Y�Y�Y� �|� �h�h�:�m�m�:�s�s� �a�'�,� �'�A�s�i�a�/�R�i�y�a�d�h�'�)�)�;� �/�/�1�7�-�D�e�c�-�2�0�2�3� �|� �0�9�:�3�6�:�4�3� �p�m�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�e�p�o�c�h�T�i�m�e�.�e�p�o�c�h�T�o�D�a�t�e�T�i�m�e�(�1�7�0�2�8�3�8�2�0�3�,� �'�D�D�-�M�M�M�-�Y�Y�Y�Y� �|� �Z�T�h�h�:�m�m�:�s�s� �a�'�)�)�;� �/�/�1�8�-�D�e�c�-�2�0�2�3� �|� �+�0�5�:�3�0�T�1�2�:�0�6�:�4�3� �a�m�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�e�p�o�c�h�T�i�m�e�.�e�p�o�c�h�T�o�D�a�t�e�T�i�m�e�(�1�7�0�2�8�3�8�2�0�3�,� �'�D�D�-�M�M�M�-�Y�Y�Y�Y� �|� �Z�Z�T�h�h�:�m�m�:�s�s� �a�'�)�)�;� �/�/�1�8�-�D�e�c�-�2�0�2�3� �|� �+�0�5�3�0�T�1�2�:�0�6�:�4�3� �a�m�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�e�p�o�c�h�T�i�m�e�.�e�p�o�c�h�T�o�D�a�t�e�T�i�m�e�(�1�7�0�2�8�3�8�2�0�3�,� �'�D�D�-�M�M�M�M�-�Y�Y�Y�Y� �|� �H�H�:�m�m�:�s�s�'�)�)�;� �/�/�1�8�-�D�e�c�e�m�b�e�r�-�2�0�2�3� �|� �0�0�:�0�6�:�4�3�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�e�p�o�c�h�T�i�m�e�.�e�p�o�c�h�T�o�D�a�t�e�T�i�m�e�(�1�7�0�2�8�3�8�2�0�3�,� �'�D�D�-�M�M�M�M�-�Y�Y�Y�Y� �|� �k�k�:�m�m�:�s�s�'�)�)�;� �/�/�1�8�-�D�e�c�e�m�b�e�r�-�2�0�2�3� �|� �2�4�:�0�6�:�4�3�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�e�p�o�c�h�T�i�m�e�.�c�u�r�r�e�n�t�T�i�m�e�s�t�a�m�p�(�)�)�;� �/�/�1�7�0�2�8�4�1�6�0�0�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�e�p�o�c�h�T�i�m�e�.�a�d�d�D�a�y�T�o�C�u�r�r�e�n�t�E�p�o�c�h�(�1�)�)�;� �/�/�1�7�0�2�9�2�8�0�0�0�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�e�p�o�c�h�T�i�m�e�.�a�d�d�D�a�y�T�o�G�i�v�e�n�E�p�o�c�h�(�1�,� �1�7�0�2�9�2�6�0�5�1�)�)�;� �/�/�1�7�0�3�0�1�2�4�5�1�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�e�p�o�c�h�T�i�m�e�.�d�a�t�e�T�o�E�p�o�c�h�(�"�1�2�/�2�0�/�2�0�2�3�"�,� �'�A�s�i�a�/�C�a�l�c�u�t�t�a�'�)�)�;� �/�/�1�7�0�3�0�1�0�6�0�0�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�e�p�o�c�h�T�i�m�e�.�c�u�r�r�e�n�t�D�a�t�e�(�"�A�s�i�a�/�R�i�y�a�d�h�"�)�)�;� �/�/�2�0�2�3�-�1�2�-�1�7� �1�9�:�3�3�:�2�0�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�e�p�o�c�h�T�i�m�e�.�a�d�d�D�u�r�a�t�i�o�n�T�o�C�u�r�r�e�n�t�D�a�t�e�(�1�,� �"�D�a�y�s�"�)�)�;� �/�/�2�0�2�3�-�1�2�-�1�9� �0�1�:�0�3�:�2�0�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�e�p�o�c�h�T�i�m�e�.�g�e�t�D�u�r�a�t�i�o�n�B�e�t�w�e�e�n�T�w�o�D�a�t�e�(�"�1�2�-�1�7�-�2�0�2�3�"�,� �"�1�2�-�1�8�-�2�0�2�3�"�,� �"�h�o�u�r�"�)�)�;� �
�
�[�
�
� � �'�1�2� �A�M�'�,� �'�1� �A�M�'�,� � �'�2� �A�M�'�,�
�
� � �'�3� �A�M�'�,� � �'�4� �A�M�'�,� � �'�5� �A�M�'�,�
�
� � �'�6� �A�M�'�,� � �'�7� �A�M�'�,� � �'�8� �A�M�'�,�
�
� � �'�9� �A�M�'�,� � �'�1�0� �A�M�'�,� �'�1�1� �A�M�'�,�
�
� � �'�1�2� �P�M�'�,� �'�1� �P�M�'�,� � �'�2� �P�M�'�,�
�
� � �'�3� �P�M�'�,� � �'�4� �P�M�'�,� � �'�5� �P�M�'�,�
�
� � �'�6� �P�M�'�,� � �'�7� �P�M�'�,� � �'�8� �P�M�'�,�
�
� � �'�9� �P�M�'�,� � �'�1�0� �P�M�'�,� �'�1�1� �P�M�'�,�
�
� � �'�1�2� �A�M�'�
�
�]�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�e�p�o�c�h�T�i�m�e�.�g�e�t�D�u�r�a�t�i�o�n�B�e�t�w�e�e�n�T�w�o�D�a�t�e�(�"�1�2�-�1�7�-�2�0�2�3�"�,� �"�1�2�-�2�0�-�2�0�2�3�"�,� �"�d�a�t�e�"�)�)�;� � �
�
�[� �'�2�0�2�3�-�1�2�-�1�7�'�,� �'�2�0�2�3�-�1�2�-�1�8�'�,� �'�2�0�2�3�-�1�2�-�1�9�'�,� �'�2�0�2�3�-�1�2�-�2�0�'� �]�
�
�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�e�p�o�c�h�T�i�m�e�.�t�i�m�e�D�i�f�f�e�r�e�n�c�e�(�1�7�0�3�0�1�0�6�0�0�,� �1�7�0�2�8�4�0�6�6�1�,� �"�d�a�y�s�"�)�)�;� �/�/� �1�
�
�
��
�
�
�