This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
groovyScript("def result='Logger.tag(TAG).v(\"'+_1+' ['; _2.each { result+=it+'=%s, '}; if(_2.size() > 0) { result = result.substring(0, result.length()-2); }; result+=']\"'; _2.each { result+=', '+ it}; result+=');'; return result;", methodName(), methodParameters()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.Time.Clock | |
import Data.Time.Calendar | |
import Data.Time.Format | |
import System.Locale | |
currentDate :: IO (Integer, Int, Int) | |
currentDate = fmap (toGregorian . utctDay) getCurrentTime | |
daysOfMonth :: Integer -> Int -> [Day] | |
daysOfMonth year month = map (fromGregorian year month) [1..gregorianMonthLength year month] |