Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

geomoment-angular

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geomoment-angular

An angular module for date formatting; wraps geomoment. For use with browserify.

  • 0.7.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

geomoment-angular

NPM

An angular.js module for date formatting with explicit timezones; wraps geomoment. For use with browserify.

Assumes that angular is in the global scope (part of window).

examples

setup:

// somewhere in your client side code that gets processed by browserify:
require('geomoment-angular');

factory:

function myController($scope, geomoment) {
  geomoment.day('2013-02-08');
}

filters:

<strong>{{'2013-02-08T09:30' | formatDate:'America/Los_Angeles':'h:mm:ssa'}}</strong> becomes <strong>9:30:00am</strong>
<strong>{{'2013-02-08' | formatDay:'weekday'}}</strong> becomes <strong>Friday</strong>
<strong>{{'2013-02-08T09:30' | addTime:'days':1 | formatDay:'MMM Do YYYY h:mma'}}</strong> becomes <strong>Feb 9th 2013 9:30am</strong>
<strong>{{'2013-02-08T09:30' | subtractTime:'hours':9 | formatDay:'MMM Do YYYY h:mma'}}</strong> becomes <strong>Feb 8th 2013 12:30am</strong>

Keywords

FAQs

Package last updated on 03 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc