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

@coreo/ionic-datetime

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coreo/ionic-datetime

Coreo Ionic Date/Time Module

  • 1.0.0-beta.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@coreo/ionic-datetime

Ionic 2+ module for manipulating dates and times.

Installation

yarn add @coreo/ionic-datetime

Usage

Import the module in your app.module.ts:

import { CoreoDateTimeModule } from '@coreo/ionic-datetime';
...
@NgModule({
    imports: [
        ...
        CoreoDateTimeModule
        ...
    ]
})
export class AppModule {}

TimeagoPipe

Displays the passed date as a string according to the time ago it occurred, e.g. less than a minute ago, 4 hours ago, etc. Example:

<div>{{ someDateTime | coreoTimeago | async }}</div>

someDateTime can be a Date, number (milliseconds since epoch) or string (ISO 8601 or otherwise parseable by JavaScript).

The pipe returns an Observable, so don't forget to pipe the result through the async pipe! The text will automatically update as time elapses.

The strings emitted by the pipe are translatable via ngx-translate. See the file translations.ts for the complete list. Be sure to include all of these strings in your custom translation file.

FAQs

Package last updated on 10 Jul 2017

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