hapi-server / uri-templates

Repository of tools for URI templates
Apache License 2.0
2 stars 0 forks source link

Java format output different than formatRange #7

Open jbfaden opened 3 years ago

jbfaden commented 3 years ago

This works:

outn= URITemplate.formatRange(  'vg1pws_lr_$Y$m$(d;delta=10;phasestart=1979-01-01)_$(Y;end)$m$d_v5.10.png', str(t), str(t.add(datum('1days')) ) 

But this doesn't:

ut= URITemplate( 'vg1pws_lr_$Y$m$(d;delta=10;phasestart=1979-01-01)_$(Y;end)$m$d_v5.10.png').format(  ut.format( str(t), str(t.add(datum('1days')) ) 
jbfaden commented 3 years ago

I was just wrestling with this again and thought to put in a ticket. I cleaned up mistakes from the first time I quickly entered it.

jbfaden commented 3 years ago

See https://github.com/autoplot/dev/blob/master/demos/2020/20201030/demoUriTemplates.jy (an Autoplot script).