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.9.0
  • Source
  • npm
  • Socket score

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

geomoment-angular

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

examples

setup:

angular.module('my-module', ['geomoment']);

service:

injectedFunction = ['geomoment', function(geomoment) {
  geomoment.day('2013-02-08');
}];

filters:

Filter exampleResult
{{'2013-02-08T09:30' | formatDate:tzid:'h:mm:ssa'}}9:30:00am
{{'2013-02-08' | formatDay:'weekday'}}Friday
{{'2013-02-08T09:30' | addTime:'days':1 | formatDay:'MMM Do YYYY'}}Feb 9th 2013
{{'2013-02-08T09:30' | subtractTime:'hours':9 | formatDate:tzid:'h:mma'}}12:30am

directive:

<form name='dateForm'>
  <input ngModel='date' geomoment='YYYY-MM-DD h:mm a' tzid='America/Los_Angeles'>
</form>

The geomoment directive will convert a string representation of a date (expressed in the geomoment attr) into a javascript Date object. It uses the geomoment library to parse input dates, so it does a pretty good job of interpolating human input.

Keywords

FAQs

Package last updated on 18 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