Re: How to validate date (YYYYMMDD) using clojure

2018-03-12 Thread Didier
(defn valid-mmdd? [date] ;; Here's the code that you would use in Java, but using Clojure interop, which needs to return true/false if valid. ;; So an example: (try (let [format (java.time.format.DateTimeFormatter/ofPattern "MMdd")] (java.time.LocalDate/parse date

[ANN] depstar: a clj-based uberjarrer

2018-03-12 Thread Edward Knyshov
Logo is awesome! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group,

Macro argument evaluation, and function return value evaluation?

2018-03-12 Thread Didier
I feel these have been asked many times, but no answers I could find was complete, or satisfactory. 1) How do you, within a macro, choose to evaluate an argument? So imagine I wanted a macro which had applicative order of evaluation? Not a macro that returns a function which will be evaluated

Re: How to validate date (YYYYMMDD) using clojure

2018-03-12 Thread bijay paudel
Any idea how can I use in Clojure spec? Thanks! Bijay On Mon, Mar 12, 2018 at 9:02 PM, Didier wrote: > Do it as you would in Java, using Clojure/Java interop. > > If you paste the Java code for how you'd do it, we can help you convert it > to Clojure interop code. > > > On

Re: How to validate date (YYYYMMDD) using clojure

2018-03-12 Thread Didier
Do it as you would in Java, using Clojure/Java interop. If you paste the Java code for how you'd do it, we can help you convert it to Clojure interop code. On Monday, 12 March 2018 15:28:27 UTC-7, pbi...@gmail.com wrote: > > I am java certified professional.Currently I am working Clojure I am

Re: How to validate date (YYYYMMDD) using clojure

2018-03-12 Thread bijay paudel
I need to process Effective Date by reading the data. At that case how I can do from clojure? Any idea please. Logical Data Element: Term Effective Date Required: MMDD On Mon, Mar 12, 2018 at 6:53 PM, John Jacobsen wrote: > Have a look at clj-time:

Re: How to validate date (YYYYMMDD) using clojure

2018-03-12 Thread John Jacobsen
Have a look at clj-time: https://github.com/clj-time/clj-time In particular the clj-time.format namespace. Cheers! John -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from

How to call a function read from an EDN file?

2018-03-12 Thread Christopher Lee
down votefavorite Clojure noob here. After reading in the google-creds.edn file like so: "(edn/read-string (slurp "config/google-creds.edn"))" How do I call the function get-auth-map on this EDN

How to validate date (YYYYMMDD) using clojure

2018-03-12 Thread pbijay
I am java certified professional.Currently I am working Clojure I am still learning clojure. I am trying to validate date ( MMDD) using clojure. Any one have idea how can I validate? Thanks! Bijay -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: Comparing and selecting web API libraries

2018-03-12 Thread Daniel Compton
If you're looking at Liberator because of how it lets you write applications that implement much of the HTTP spec then I would suggest also looking at Yada. It was written by Malcolm Sparks (who also contributed to Liberator), and takes HTTP spec compliance very seriously. It gives you a lot of

[ANN] depstar: a clj-based uberjarrer

2018-03-12 Thread Ghadi Shayban
My workflow has generally changed to one based on clj and tools.deps wherever possible. I continue to use lein for uberjarring, so I wrote this tool to jar up the classpath. depstar has no dependencies, and uses the JVM classpath instead of reading deps.edn directly. It handles merging