strftime/000755 001751 000177 0000000000 14526766570014454 5ustar00runner000000 000000 1452676657014526766570strftime/LICENSE000644 001751 000177 0000002165 14526766570015465 0ustar00runner000000 000000 1452676657014526766570 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE strftime/README.md000644 001751 000177 0000005446 14526766570015726 0ustar00runner000000 000000 1452700146514526766570# Installation > `npm install --save @types/strftime` # Summary This package contains type definitions for strftime (https://github.com/samsonjs/strftime). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/strftime. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/strftime/index.d.ts) ````ts declare module "strftime" { type strftimeFunction = (format: string, date?: Date) => string; namespace strftime { /** * Sets locale. * @param {Locale} locale A locale. * @return {strftimeFunction} A strftime function. */ export function localize(locale: Locale): strftimeFunction; /** * Sets timezone. * @param {number|string} offset A offset. * @return {strftimeFunction} A strftime function. */ export function timezone(offset: number | string): strftimeFunction; /** * Sets the timezone to UTC. * @return {strftimeFunction} A strftime function. */ export function utc(): strftimeFunction; /** * Locale formats. * @interface */ export interface LocaleFormats { D?: string | undefined; F?: string | undefined; R?: string | undefined; T?: string | undefined; X?: string | undefined; c?: string | undefined; r?: string | undefined; v?: string | undefined; x?: string | undefined; } /** * Locale. * @interface */ export interface Locale { days?: string[] | undefined; shortDays?: string[] | undefined; months?: string[] | undefined; shortMonths?: string[] | undefined; AM?: string | undefined; PM?: string | undefined; am?: string | undefined; pm?: string | undefined; formats: LocaleFormats; } } /** * Format a local time/date according to locale settings * @param {string} format A format. * @return {string} Returns a string formatted. */ function strftime(format: string): string; /** * Format a local time/date according to locale settings * @param {string} format A format. * @param {Date} date A date. * @return {string} Returns a string formatted according format using the given date or the current local time. */ function strftime(format: string, date: Date): string; export = strftime; } ```` ### Additional Details * Last updated: Mon, 20 Nov 2023 23:36:24 GMT * Dependencies: none # Credits These definitions were written by [Cyril Schumacher](https://github.com/cyrilschumacher). strftime/index.d.ts000644 001751 000177 0000004312 14526766570016355 0ustar00runner000000 000000 1452676657014526766570declare module "strftime" { type strftimeFunction = (format: string, date?: Date) => string; namespace strftime { /** * Sets locale. * @param {Locale} locale A locale. * @return {strftimeFunction} A strftime function. */ export function localize(locale: Locale): strftimeFunction; /** * Sets timezone. * @param {number|string} offset A offset. * @return {strftimeFunction} A strftime function. */ export function timezone(offset: number | string): strftimeFunction; /** * Sets the timezone to UTC. * @return {strftimeFunction} A strftime function. */ export function utc(): strftimeFunction; /** * Locale formats. * @interface */ export interface LocaleFormats { D?: string | undefined; F?: string | undefined; R?: string | undefined; T?: string | undefined; X?: string | undefined; c?: string | undefined; r?: string | undefined; v?: string | undefined; x?: string | undefined; } /** * Locale. * @interface */ export interface Locale { days?: string[] | undefined; shortDays?: string[] | undefined; months?: string[] | undefined; shortMonths?: string[] | undefined; AM?: string | undefined; PM?: string | undefined; am?: string | undefined; pm?: string | undefined; formats: LocaleFormats; } } /** * Format a local time/date according to locale settings * @param {string} format A format. * @return {string} Returns a string formatted. */ function strftime(format: string): string; /** * Format a local time/date according to locale settings * @param {string} format A format. * @param {Date} date A date. * @return {string} Returns a string formatted according format using the given date or the current local time. */ function strftime(format: string, date: Date): string; export = strftime; } strftime/package.json000644 001751 000177 0000001450 14526766570016724 0ustar00runner000000 000000 1452700146514526766570{ "name": "@types/strftime", "version": "0.9.8", "description": "TypeScript definitions for strftime", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/strftime", "license": "MIT", "contributors": [ { "name": "Cyril Schumacher", "githubUsername": "cyrilschumacher", "url": "https://github.com/cyrilschumacher" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/strftime" }, "scripts": {}, "dependencies": {}, "typesPublisherContentHash": "10b77cef15f555a99c6a7f1c6557dbd35c269845e6dd60ed076f7fd9fa039b6f", "typeScriptVersion": "4.5" }