{"id":15560954,"url":"https://github.com/rambos/sass-times","last_synced_at":"2026-05-19T19:13:43.105Z","repository":{"id":56894304,"uuid":"63653162","full_name":"Rambos/sass-times","owner":"Rambos","description":"SASS 时间戳方法","archived":false,"fork":false,"pushed_at":"2016-07-19T03:55:31.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T04:42:47.397Z","etag":null,"topics":["gem","ruby","sass","sass-times"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rambos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-19T02:29:56.000Z","updated_at":"2017-02-24T02:30:03.000Z","dependencies_parsed_at":"2022-08-20T17:10:21.173Z","dependency_job_id":null,"html_url":"https://github.com/Rambos/sass-times","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rambos/sass-times","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rambos%2Fsass-times","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rambos%2Fsass-times/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rambos%2Fsass-times/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rambos%2Fsass-times/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rambos","download_url":"https://codeload.github.com/Rambos/sass-times/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rambos%2Fsass-times/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265728981,"owners_count":23818733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gem","ruby","sass","sass-times"],"created_at":"2024-10-02T16:04:24.353Z","updated_at":"2026-05-19T19:13:43.066Z","avatar_url":"https://github.com/Rambos.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sass-times [![Gem Version](https://badge.fury.io/rb/sass-times.svg)](https://badge.fury.io/rb/sass-times)\nSASS  时间戳方法\n\n### 安装\n```sh\ngem install sass-times\n```\n\n### 用法\n1. 添加 `require \"sass-times\"` 到sass配置中，如果你使用commpass 可以写入 `config.rb` 文件中.\n\n2. 直接在scss文件中以下下几种调用方法\n\n    timestamp()\n    ```scss\n    /* 完成于 #{timestamp()} */\n    ```\n    输出:\n    ```css\n    /* 完成于 2016-07-19 13:01:40 +0800 */\n    ```\n\n    strftime()\n    ```scss\n    /* 完成于 #{strftime('%Y-%m-%d')} */\n    ```\n    输出:\n    ```css\n    /* 完成于 2016-07-19 */\n    ```\n\n    unix_timestamp\n    ```scss\n    /* 完成于 #{unix_timestamp()} */\n    ```\n    输出:\n    ```css\n    /* 完成于 1468895660 */\n    ```\n\nstrftime more http://ruby-doc.org/core-2.0.0/Time.html#method-i-strftime","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frambos%2Fsass-times","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frambos%2Fsass-times","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frambos%2Fsass-times/lists"}