Search
 
SCRIPT & CODE EXAMPLE
 

RUBY

liquid add date

{% assign date = '2015-04-20' | date: '%s' %}
{% assign seconds = 5 | times: 24 | times: 60 | times: 60 %}
{{ date | date: "%s" | plus: seconds | date: "%Y-%m-%d" }}


{% assign seconds = 5 | times: 24 | times: 60 | times: 60 %}
{{ 'now' | date: "%s" | plus: seconds | date: "%Y-%m-%d" }}

{{ date | date: "%s" | plus: 86400 | date: "%d/%m/%Y"   }}
Comment

liquid add date

{% assign date = '2015-04-20' | date: '%s' %}
{% assign seconds = 5 | times: 24 | times: 60 | times: 60 %}
{{ date | date: "%s" | plus: seconds | date: "%Y-%m-%d" }}


{% assign seconds = 5 | times: 24 | times: 60 | times: 60 %}
{{ 'now' | date: "%s" | plus: seconds | date: "%Y-%m-%d" }}

{{ date | date: "%s" | plus: 86400 | date: "%d/%m/%Y"   }}
Comment

PREVIOUS NEXT
Code Example
Ruby :: array to string ruby 
Ruby :: how to write CSV file in rails 
Ruby :: ruby median find 
Ruby :: ruby test is number 
Ruby :: sort array of hashes ruby 
Ruby :: ruby not include 
Ruby :: ruby array unshift 
Ruby :: ruby datetime parse 
Ruby :: rails generate rake task 
Ruby :: rails logger stdout 
Ruby :: how to add to array ruby 
Ruby :: rails add index specifc name 
Ruby :: run a rake task 
Ruby :: ruby class variable 
Ruby :: will_paginate gem rails 
Ruby :: random number rails 
Ruby :: ruby attr_writer example 
Ruby :: ruby constructors 
Ruby :: ruby array with unique values 
Ruby :: rails migration column types 
Ruby :: ruby puts inspect 
Ruby :: input type checkbox checked with condition rails 
Ruby :: how do i fix FATAL: password authentication failed for user "root" 
Ruby :: last select in rails 
Ruby :: grep routes rails 
Ruby :: add extension in ruby tempfile object 
Ruby :: rails revert migration 
R :: if not i startswith r 
R :: r test normality 
R :: how to split a column in r 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =