Discussion:
Newbie to clippings here.
ferren
2017-06-07 10:04:19 UTC
Permalink
I want the result to show the date automatically. I insert the clipping
#DATETIME_yy:mm:dd:hh:min:sec # into the code -- and the resulting HTML
reads "#DATETIME_yy:mm:dd:hh:min:sec #", where I was hoping for
something resembling 17:06:07:11:57:18. The insertion in the code is
followed by a space and an inverted red ?, which no doubt indicates
something. What have I missed?
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"***@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
Rich Siegel
2017-06-07 11:11:32 UTC
Permalink
Post by ferren
DATETIME_yy:mm:dd:hh:min:sec
This isn't a valid format string; so the system function that
formats the time doesn't know what to do with it. ("min:sec"
isn't meaningful.)

If you search for "DATETIME" in the user manual, it will point
you to this reference for date/time formats:
<http://userguide.icu-project.org/formatparse/datetime>. (Scroll
down to the "Date/Time Format Syntax" section.)

Enjoy,

R.
--
Rich Siegel Bare Bones Software, Inc.
<***@barebones.com> <http://www.barebones.com/>

Someday I'll look back on all this and laugh... until they
sedate me.
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"***@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
ferren
2017-06-09 10:02:12 UTC
Permalink
Post by ferren
I want the result to show the date automatically. I insert the clipping
#DATETIME_yy:mm:dd:hh:min:sec # into the code -- and the resulting HTML
reads "#DATETIME_yy:mm:dd:hh:min:sec #", where I was hoping for
something resembling 17:06:07:11:57:18. The insertion in the code is
followed by a space and an inverted red ?, which no doubt indicates
something. What have I missed?
Thank you Rich. I now understand the red question mark. But I got the
erroneous "min:sec" format by experimentally clicking on "date & time" in
the Universal clippings offering of the popup menu.

There's something major I don't understand about clippings. I type "d" and
hit F5, and get a popup which includes

• date
• date
• date & time
• date_format
• date_parse_from_format

1 and 3 get me the erroneous "min:sec" format, 2 gets "<date></date>", 4
and 5 get an error box saying "An attempt was made to resolve an Apple
Event reference to a non-existent object (MacOS Error code: -1728)"

If I just type in #DATETIME_y#, which ought to produce the year, I get the
format string showing up in the output. I am confused.
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"***@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
Rich Siegel
2017-06-09 12:18:37 UTC
Permalink
Post by ferren
There's something major I don't understand about clippings. I
type "d" and hit F5, and get a popup which includes
• date
• date
• date & time
• date_format
• date_parse_from_format
None of these clippings are supplied with BBEdit (in fact, none
are nor have been for many years), and since I can't see what's
in them, I can't tell you why they misbehave. :-) This is
probably a matter for Tech Support.
Post by ferren
If I just type in #DATETIME_y#, which ought to produce the
year, I get the format string showing up in the output. I am confused.
Note that there needs to be a space between the end of
"DATETIME" and the format string. Thus:

#DATETIME _y#"

will give you the year prefixed with an underscore.

R.
--
Rich Siegel Bare Bones Software, Inc.
<***@barebones.com> <http://www.barebones.com/>

Someday I'll look back on all this and laugh... until they
sedate me.
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"***@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
ferren
2017-06-09 13:55:34 UTC
Permalink
Post by Rich Siegel
Post by ferren
There's something major I don't understand about clippings. I
type "d" and hit F5, and get a popup which includes
• date
• date
• date & time
• date_format
• date_parse_from_format
None of these clippings are supplied with BBEdit (in fact, none
are nor have been for many years), and since I can't see what's
in them, I can't tell you why they misbehave. :-) This is
probably a matter for Tech Support.
Post by ferren
If I just type in #DATETIME_y#, which ought to produce the
year, I get the format string showing up in the output. I am confused.
Note that there needs to be a space between the end of
#DATETIME _y#"
will give you the year prefixed with an underscore.
R.
--
Rich Siegel Bare Bones Software, Inc.
http://www.barebones.com/>
Someday I'll look back on all this and laugh... until they
sedate me.
Ah, things are looking up, and I'm beginning to see how this works. I don't
know where my clippings file came from, if not BBEdit. (I used TextWrangler
long enough to write a 25 chapter book in HTML, and am only very recently
exploring the fancy features of BBEdit. Some of them work wonderfully well
and make life much simpler.)

But what I was hoping to find was a date format that would record the time
of most recent update automatically, rather than just once. Is there a way
to do that in BBEdit?
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"***@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
Loading...