Revision: 57244
          http://sourceforge.net/p/brlcad/code/57244
Author:   tbrowder2
Date:     2013-08-28 22:00:18 +0000 (Wed, 28 Aug 2013)
Log Message:
-----------
add time stamps to normal attr show (the creation time stamp is not yet stable)

Modified Paths:
--------------
    brlcad/trunk/src/libged/attr.c

Modified: brlcad/trunk/src/libged/attr.c
===================================================================
--- brlcad/trunk/src/libged/attr.c      2013-08-28 21:50:14 UTC (rev 57243)
+++ brlcad/trunk/src/libged/attr.c      2013-08-28 22:00:18 UTC (rev 57244)
@@ -138,12 +138,20 @@
     struct bu_attribute_value_pair *avpp;
     size_t i;
 
+    /* show the time stamps */
+    struct bu_vls c_time = BU_VLS_INIT_ZERO;
+    struct bu_vls m_time = BU_VLS_INIT_ZERO;
     for (i = 0, avpp = avs->avp; i < avs->count; i++, avpp++) {
+       bu_utctime(&c_time, avpp->created);
+       bu_utctime(&m_time, avpp->modified);
        bu_vls_printf(gedp->ged_result_str,
                      "\t%-*.*s"
-                     "\t%-*.*s\n",
+                     "\t%-*.*s"
+                     "\t%s\t%s\n",
                      max_attr_name_len, max_attr_name_len, avpp->name,
-                     max_attr_value_len, max_attr_value_len, avpp->value);
+                     max_attr_value_len, max_attr_value_len, avpp->value,
+                     c_time.vls_str, m_time.vls_str
+                     );
     }
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to