mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	CSV import: support min.sec format
Assume a format containing a dot to be min.sec as defined in DL7 specification. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									1fec953a13
								
							
						
					
					
						commit
						0b8ac416bf
					
				
					 1 changed files with 9 additions and 1 deletions
				
			
		| 
						 | 
					@ -166,7 +166,15 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
              <xsl:call-template name="sec2time">
 | 
					              <xsl:call-template name="sec2time">
 | 
				
			||||||
                <xsl:with-param name="timeSec">
 | 
					                <xsl:with-param name="timeSec">
 | 
				
			||||||
 | 
					                  <xsl:choose>
 | 
				
			||||||
 | 
					                    <xsl:when test="substring-after($value, '.') != ''">
 | 
				
			||||||
 | 
					                      <!-- Well, I suppose it was min.sec -->
 | 
				
			||||||
 | 
					                      <xsl:value-of select="substring-before($value, '.') * 60 + substring-after($value, '.')" />
 | 
				
			||||||
 | 
					                    </xsl:when>
 | 
				
			||||||
 | 
					                    <xsl:otherwise>
 | 
				
			||||||
                      <xsl:value-of select="$value"/>
 | 
					                      <xsl:value-of select="$value"/>
 | 
				
			||||||
 | 
					                    </xsl:otherwise>
 | 
				
			||||||
 | 
					                  </xsl:choose>
 | 
				
			||||||
                </xsl:with-param>
 | 
					                </xsl:with-param>
 | 
				
			||||||
              </xsl:call-template>
 | 
					              </xsl:call-template>
 | 
				
			||||||
            </xsl:when>
 | 
					            </xsl:when>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue