Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • U unixtime
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Luke Bratch
  • unixtime
  • Merge requests
  • !1

Milliseconds

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Joe Robinson requested to merge milliseconds into master Jul 12, 2017
  • Overview 1
  • Commits 3
  • Pipelines 0
  • Changes 1

Added 3 new functions:

Print the current unix timestamp

Run the script with no arguments

e.g:

joe@phobos ~/blatech/unixtime $ ./unixtime.pl

1499865953

Convert from time since the Unix epoch, given in milliseconds

Run the script with a timestamp in milliseconds, and add a second argument "ms"

e.g:

joe@phobos ~/blatech/unixtime $ ./unixtime.pl 1499865571123 ms

Wed Jul 12 14:19:31:123 BST 2017

Print the current time since the Unix epoch in milliseconds

Run the script only with the argument "ms"

e.g:

joe@phobos ~/blatech/unixtime $ ./unixtime.pl ms

1499866043745

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: milliseconds