Skip to content

About

SASS 时间戳方法

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sass-times Gem Version

SASS 时间戳方法

安装

gem install sass-times

用法

  1. 添加 require "sass-times" 到sass配置中,如果你使用commpass 可以写入 config.rb 文件中.

  2. 直接在scss文件中以下下几种调用方法

    timestamp()

    /* 完成于 #{timestamp()} */

    输出:

    /* 完成于 2016-07-19 13:01:40 +0800 */

    strftime()

    /* 完成于 #{strftime('%Y-%m-%d')} */

    输出:

    /* 完成于 2016-07-19 */

    unix_timestamp

    /* 完成于 #{unix_timestamp()} */

    输出:

    /* 完成于 1468895660 */

strftime more http://ruby-doc.org/core-2.0.0/Time.html#method-i-strftime

About

SASS 时间戳方法

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages