@f/timestamp

WebJar for @f/timestamp

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

f__timestamp
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

@f/timestamp
WebJar for @f/timestamp
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/micro-js/timestamp

Download f__timestamp

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/f__timestamp/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>f__timestamp</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/f__timestamp/
implementation 'org.webjars.npm:f__timestamp:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/f__timestamp/
implementation ("org.webjars.npm:f__timestamp:1.0.0")
'org.webjars.npm:f__timestamp:jar:1.0.0'
<dependency org="org.webjars.npm" name="f__timestamp" rev="1.0.0">
  <artifact name="f__timestamp" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='f__timestamp', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "f__timestamp" % "1.0.0"
[org.webjars.npm/f__timestamp "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

timestamp

Build status Git tag NPM version Code style

Get the current timestamp in milliseconds. Provides a more semantic and consistent interface than +new Date() and other weird js idioms.

Installation

$ npm install @f/timestamp

Usage

var timestamp = require('@f/timestamp')

timestamp() === new Date().getTime()
timestamp() === +new Date

API

timestamp()

Returns: The current timestamp in milliseconds.

License

MIT

Versions

Version
1.0.0