
                         8    S r SSKJr  SSKJr  S rS rS rS rg)	zHelpers for dealing with text.    )tz)timesc           
          U R                  S5      nUS   R                  5       SR                  USS   Vs/ s H)  o"S   R                  5       USS  R                  5       -   PM+     sn5      -   $ s  snf )N_r       )splitlowerjoinupper)namewordsws      6lib/googlecloudsdk/command_lib/privateca/text_utils.pySnakeCaseToCamelCaser      sf    
**S/%	q	BGG-212Y7Ytzz|aekkm#Y79 
9 97s   0A/
c                     0 nU R                  5        H8  u  p#[        U5      n[        U[        5      (       a  [	        U5      X'   M4  X1U'   M:     U$ )zARecursively convert all keys in nested dictionaries to snakeCase.)itemsr   
isinstancedictToSnakeCaseDict)
dictionarynew_dictkeyval
snaked_keys        r   r   r      sO    (""$hc%c*J#t,S1h z % 
/    c                     U (       a\  SU ;   aV  [         R                  " U R                  S5      5      R                  [        R
                  " 5       5      R                  S5      $ g)jUse this function in a display transform to truncate anything smaller than minutes from ISO8601 timestamp.notBeforeTime%Y-%m-%dT%H:%MZr   r   ParseDateTimeget
astimezoner   tzutcstrftimesubject_descriptions    r   TransformNotBeforeTimer)   )   sQ    _0CC022<*HHJ3 !234 
r   c                     U (       a\  SU ;   aV  [         R                  " U R                  S5      5      R                  [        R
                  " 5       5      R                  S5      $ g)r   notAfterTimer    r   r!   r'   s    r   TransformNotAfterTimer,   2   sQ    ^/BB/11;HHJ2 !234 
r   N)	__doc__dateutilr   googlecloudsdk.core.utilr   r   r   r)   r,    r   r   <module>r1      s&    %  *9
r   